diff options
| author | 2026-03-06 18:38:44 +0800 | |
|---|---|---|
| committer | 2026-03-06 18:58:30 +0800 | |
| commit | f2922155de01b734e3e8b3f50be8f263ec13cacd (patch) | |
| tree | 6dcfcf5689e63eea09314dce543e1de26cab89fe /format/commitgraph/read/parents.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
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", } |
