aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/read/layer_open.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /format/commitgraph/read/layer_open.go
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'format/commitgraph/read/layer_open.go')
-rw-r--r--format/commitgraph/read/layer_open.go2
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)