diff options
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) |
