aboutsummaryrefslogtreecommitdiff
path: root/proto/decode.go
diff options
context:
space:
mode:
Diffstat (limited to 'proto/decode.go')
-rw-r--r--proto/decode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/decode.go b/proto/decode.go
index 49a487a..cadee03 100644
--- a/proto/decode.go
+++ b/proto/decode.go
@@ -362,7 +362,7 @@ func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group
}
tag := int(u >> 3)
if tag <= 0 {
- return fmt.Errorf("proto: %s: illegal tag %d", st, tag)
+ return fmt.Errorf("proto: %s: illegal tag %d (wire type %d)", st, tag, wire)
}
fieldnum, ok := prop.decoderTags.get(tag)
if !ok {