diff options
| author | 2026-02-20 22:30:57 +0800 | |
|---|---|---|
| committer | 2026-02-20 22:30:57 +0800 | |
| commit | bb5b5334c74026c0a46f48cf2418038e0d909e9b (patch) | |
| tree | a5520e55b904a1f973898858e2278f0be294a34b /object/tag_parse.go | |
| parent | object: Use objectheader (diff) | |
| signature | No signature | |
object: Remove the old opaque errors
Diffstat (limited to 'object/tag_parse.go')
| -rw-r--r-- | object/tag_parse.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
