summaryrefslogtreecommitdiffstats
path: root/adapter/vppapiclient/vppapiclient.go
diff options
context:
space:
mode:
Diffstat (limited to 'adapter/vppapiclient/vppapiclient.go')
-rw-r--r--adapter/vppapiclient/vppapiclient.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/vppapiclient/vppapiclient.go b/adapter/vppapiclient/vppapiclient.go
index fcd3f3f..977f32d 100644
--- a/adapter/vppapiclient/vppapiclient.go
+++ b/adapter/vppapiclient/vppapiclient.go
@@ -116,7 +116,7 @@ func (a *vppClient) GetMsgID(msgName string, msgCrc string) (uint16, error) {
msgID := uint16(C.govpp_get_msg_index(nameAndCrc))
if msgID == ^uint16(0) {
// VPP does not know this message
- return msgID, fmt.Errorf("unknown message: %v (crc: %v)", msgName, msgCrc)
+ return msgID, &adapter.UnknownMsgError{msgName, msgCrc}
}
return msgID, nil