diff --git a/go.mod b/go.mod index fed236b3..300af363 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,6 @@ go 1.12 require ( github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf // indirect - github.com/c-bata/go-prompt v0.2.3 github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e github.com/fatih/color v1.7.0 github.com/golang/protobuf v1.3.1 diff --git a/go.sum b/go.sum index 1cdf3cf2..207d77bc 100644 --- a/go.sum +++ b/go.sum @@ -10,8 +10,6 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310 h1:BUAU3CGlLvorLI26 github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/c-bata/go-prompt v0.2.3 h1:jjCS+QhG/sULBhAaBdjb2PlMRVaKXQgn+4yzaauvs2s= -github.com/c-bata/go-prompt v0.2.3/go.mod h1:VzqtzE2ksDBcdln8G7mk2RX9QyGjH+OVqOCSiVIqS34= github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8= diff --git a/grpc/grpc.go b/grpc/grpc.go index 95254962..c4f982fd 100644 --- a/grpc/grpc.go +++ b/grpc/grpc.go @@ -116,7 +116,7 @@ func NewClient(addr, serverName string, useReflection, useTLS bool, cacert, cert } cp := x509.NewCertPool() if !cp.AppendCertsFromPEM(b) { - return nil, errors.Wrap(err, "failed to append the client certificate") + return nil, errors.New("failed to append the client certificate") } tlsCfg.RootCAs = cp }