From 456daaf3f1ec5f098f4f27c9dd5fadcd0ff9c30c Mon Sep 17 00:00:00 2001 From: iamqizhao Date: Thu, 27 Aug 2015 22:00:49 -0700 Subject: [PATCH] extend ErrNoTransportSecurity message --- clientconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientconn.go b/clientconn.go index fc13c38d..df44740c 100644 --- a/clientconn.go +++ b/clientconn.go @@ -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")