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/tag_parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object/tag_parse.go') diff --git a/object/tag_parse.go b/object/tag_parse.go index b9b3cac8..84256166 100644 --- a/object/tag_parse.go +++ b/object/tag_parse.go @@ -12,7 +12,7 @@ import ( // ParseTag decodes a tag object body. func ParseTag(body []byte, algo oid.Algorithm) (*Tag, error) { if algo.Size() == 0 { - return nil, ErrInvalidObject + return nil, fmt.Errorf("object: tag: invalid hash algorithm %q", algo) } t := new(Tag) -- cgit v1.3.1-10-gc9f91