diff options
Diffstat (limited to 'extras/hs-test/vppinstance.go')
-rw-r--r-- | extras/hs-test/vppinstance.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/hs-test/vppinstance.go b/extras/hs-test/vppinstance.go index e909b85abba..1a058c8e0e3 100644 --- a/extras/hs-test/vppinstance.go +++ b/extras/hs-test/vppinstance.go @@ -159,6 +159,7 @@ func (vpp *VppInstance) start() error { core.DefaultReconnectInterval) if err != nil { fmt.Println("async connect error: ", err) + return err } vpp.connection = conn @@ -172,12 +173,15 @@ func (vpp *VppInstance) start() error { ch, err := conn.NewAPIChannel() if err != nil { fmt.Println("creating channel failed: ", err) + return err } if err := ch.CheckCompatiblity(vpe.AllMessages()...); err != nil { fmt.Println("compatibility error: ", err) + return err } if err := ch.CheckCompatiblity(interfaces.AllMessages()...); err != nil { fmt.Println("compatibility error: ", err) + return err } vpp.apiChannel = ch |