extend ErrNoTransportSecurity message

This commit is contained in:
iamqizhao
2015-08-27 22:00:49 -07:00
parent 72a3b4a331
commit 456daaf3f1

View File

@ -53,7 +53,7 @@ var (
// ErrNoTransportSecurity indicates that there is no transport security
// being set for ClientConn. Users should either set one or explicityly
// call WithInsecure DialOption to disable security.
ErrNoTransportSecurity = errors.New("grpc: no transport security set")
ErrNoTransportSecurity = errors.New("grpc: no transport security set (use grpc.WithInsecure() or set one)")
// ErrClientConnClosing indicates that the operation is illegal because
// the session is closing.
ErrClientConnClosing = errors.New("grpc: the client connection is closing")