| commit | baeae8bcd1d3c1195b85619b5e455fc8428d2faa | [log] [tgz] |
|---|---|---|
| author | David Symonds <dsymonds@golang.org> | Mon Jun 23 09:41:27 2014 +1000 |
| committer | David Symonds <dsymonds@golang.org> | Mon Jun 23 09:41:27 2014 +1000 |
| tree | 7276af60e43ac66c344722c941dfe748d1df5963 | |
| parent | 47fc4dbbc31163685e3a5f976a67e961dc3a8e06 [diff] [blame] |
goprotobuf: Remove ErrWrongType and improve error messages. LGTM=nigeltao R=nigeltao CC=golang-codereviews https://codereview.appspot.com/110080043
diff --git a/proto/message_set.go b/proto/message_set.go index a3f5003..6ddcc30 100644 --- a/proto/message_set.go +++ b/proto/message_set.go
@@ -127,7 +127,7 @@ mti, ok := pb.(messageTypeIder) if !ok { - return ErrWrongType // TODO: custom error? + return ErrNoMessageTypeId } mtid := mti.MessageTypeId()