Change error returned for transport not found

This commit is contained in:
Menghan Li
2016-07-27 11:57:23 -07:00
parent f6b46c1787
commit fa5748afd3

View File

@ -501,7 +501,7 @@ func (cc *ClientConn) getTransport(ctx context.Context, opts BalancerGetOptions)
if put != nil {
put()
}
return nil, nil, Errorf(codes.Internal, "grpc: failed to find the transport to send the rpc")
return nil, nil, errConnClosing
}
t, err := ac.wait(ctx, !opts.BlockingWait)
if err != nil {