diff options
-rw-r--r-- | gobgp/cmd/common.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobgp/cmd/common.go b/gobgp/cmd/common.go index 99229008..267cc7d5 100644 --- a/gobgp/cmd/common.go +++ b/gobgp/cmd/common.go @@ -281,7 +281,7 @@ func newClient() *cli.Client { target := net.JoinHostPort(globalOpts.Host, strconv.Itoa(globalOpts.Port)) client, err := cli.New(target, grpcOpts...) if err != nil { - exitWithError(err) + exitWithError(fmt.Errorf("failed to connect to %s over gRPC: %s", target, err)) } return client } |