Skip to content

Commit cbdebd1

Browse files
authored
Merge pull request containerd#4447 from kzys/grpc-error
client: surface a connection error more clearly
2 parents b6aa5a4 + 73d28dd commit cbdebd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func New(address string, opts ...ClientOpt) (*Client, error) {
123123
grpc.FailOnNonTempDialError(true),
124124
grpc.WithConnectParams(connParams),
125125
grpc.WithContextDialer(dialer.ContextDialer),
126+
grpc.WithReturnConnectionError(),
126127

127128
// TODO(stevvooe): We may need to allow configuration of this on the client.
128129
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(defaults.DefaultMaxRecvMsgSize)),

0 commit comments

Comments
 (0)