Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Improve compatibility checking
[govpp.git]
/
adapter
/
socketclient
/
socketclient.go
diff --git
a/adapter/socketclient/socketclient.go
b/adapter/socketclient/socketclient.go
index
043d253
..
366163f
100644
(file)
--- a/
adapter/socketclient/socketclient.go
+++ b/
adapter/socketclient/socketclient.go
@@
-419,7
+419,7
@@
func (c *vppClient) GetMsgID(msgName string, msgCrc string) (uint16, error) {
msg := msgName + "_" + msgCrc
msgID, ok := c.msgTable[msg]
if !ok {
- return 0,
fmt.Errorf("unknown message: %q", msg)
+ return 0,
&adapter.UnknownMsgError{msgName, msgCrc}
}
return msgID, nil
}