diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2018-04-04 16:18:23 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2018-04-04 16:18:23 +0200 |
commit | 37c71c06371e9bf791fd1573051fa774fcb66602 (patch) | |
tree | 3c76b4f8a2435b4b298df20c35ebb20f7798eadd /adapter/vppapiclient | |
parent | 40cdb18263ac2624c5a007ef1b0ac7d1b21974bd (diff) |
Ignore invalid message ID if last request timed out
Change-Id: Iedca416a69ff20d0bac05062b87021de95eb40dc
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'adapter/vppapiclient')
-rw-r--r-- | adapter/vppapiclient/vppapiclient_adapter.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/adapter/vppapiclient/vppapiclient_adapter.go b/adapter/vppapiclient/vppapiclient_adapter.go index 1cdaf72..10ec53b 100644 --- a/adapter/vppapiclient/vppapiclient_adapter.go +++ b/adapter/vppapiclient/vppapiclient_adapter.go @@ -77,7 +77,6 @@ govpp_get_msg_index(char *name_and_crc) import "C" import ( - "errors" "fmt" "os" "reflect" @@ -130,7 +129,7 @@ func (a *vppAPIClientAdapter) GetMsgID(msgName string, msgCrc string) (uint16, e msgID := uint16(C.govpp_get_msg_index(nameAndCrc)) if msgID == ^uint16(0) { - return msgID, errors.New("unkonwn message") + return msgID, fmt.Errorf("unknown message: %v (crc: %v)", msgName, msgCrc) } return msgID, nil |