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/layer_open.go | |
| parent | internal/compress: Format (diff) | |
| signature | No signature | |
*: Lint v0.1.68
Diffstat (limited to 'format/commitgraph/read/layer_open.go')
| -rw-r--r-- | format/commitgraph/read/layer_open.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/format/commitgraph/read/layer_open.go b/format/commitgraph/read/layer_open.go index bf126960..1190108e 100644 --- a/format/commitgraph/read/layer_open.go +++ b/format/commitgraph/read/layer_open.go @@ -26,7 +26,7 @@ func openLayer(root *os.Root, relPath string, algo objectid.Algorithm) (*layer, if size < int64(commitgraph.HeaderSize+commitgraph.FanoutSize+algo.Size()) { _ = file.Close() - return nil, &ErrMalformed{Path: relPath, Reason: "file too short"} + return nil, &MalformedError{Path: relPath, Reason: "file too short"} } mapLen, err := intconv.Int64ToUint64(size) |
