diff options
Diffstat (limited to 'format/commitgraph/read/parents.go')
| -rw-r--r-- | format/commitgraph/read/parents.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/format/commitgraph/read/parents.go b/format/commitgraph/read/parents.go index 0f8024ab..fcaad8b6 100644 --- a/format/commitgraph/read/parents.go +++ b/format/commitgraph/read/parents.go @@ -35,7 +35,7 @@ func (reader *Reader) decodeParents(layer *layer, p1, p2 uint32) (ParentRef, Par } if len(parents) == 0 { - return ParentRef{}, ParentRef{}, nil, &ErrMalformed{Path: layer.path, Reason: "empty EDGE list"} + return ParentRef{}, ParentRef{}, nil, &MalformedError{Path: layer.path, Reason: "empty EDGE list"} } parent2 := ParentRef{Valid: true, Pos: parents[0]} @@ -52,7 +52,7 @@ func (reader *Reader) decodeSingleParent(raw uint32) (ParentRef, error) { } if raw&commitgraph.ParentExtraMask != 0 { - return ParentRef{}, &ErrMalformed{ + return ParentRef{}, &MalformedError{ Path: "commit-graph", Reason: "unexpected EDGE marker in single-parent slot", } |
