diff --git a/util/grpc/grpc.go b/util/grpc/grpc.go index a4f920e40252e9..536da792e30482 100644 --- a/util/grpc/grpc.go +++ b/util/grpc/grpc.go @@ -3,7 +3,6 @@ package grpc import ( "context" "crypto/tls" - "fmt" "net" "runtime/debug" "strings" @@ -68,13 +67,13 @@ func BlockingDial(ctx context.Context, network, address string, creds credential conn, err := proxy.Dial(ctx, network, address) if err != nil { writeResult(err) - return nil, fmt.Errorf("error dial proxy: %w", err) + return nil, err } if creds != nil { conn, _, err = creds.ClientHandshake(ctx, address, conn) if err != nil { writeResult(err) - return nil, fmt.Errorf("error creating connection: %w", err) + return nil, err } } return conn, nil