From bb5b5334c74026c0a46f48cf2418038e0d909e9b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 20 Feb 2026 22:30:57 +0800 Subject: object: Remove the old opaque errors --- object/tree_parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object/tree_parse.go') diff --git a/object/tree_parse.go b/object/tree_parse.go index e1e560b6..ee475803 100644 --- a/object/tree_parse.go +++ b/object/tree_parse.go @@ -11,7 +11,7 @@ import ( // ParseTree decodes a tree object body. func ParseTree(body []byte, algo oid.Algorithm) (*Tree, error) { if algo.Size() == 0 { - return nil, ErrInvalidObject + return nil, fmt.Errorf("object: tree: invalid hash algorithm %q", algo) } var entries []TreeEntry -- cgit v1.3.1-10-gc9f91