aboutsummaryrefslogtreecommitdiff
path: root/object/tag_parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'object/tag_parse.go')
-rw-r--r--object/tag_parse.go2
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)