From d91c14eb30ea6745422c7bb7cf59b14ff7c7fb2e Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Mon, 16 Mar 2020 09:53:15 +0000 Subject: [PATCH] grpc client error fix (#1351) Co-authored-by: Ben Toogood --- client/grpc/grpc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/grpc/grpc.go b/client/grpc/grpc.go index c0900655..df1de990 100644 --- a/client/grpc/grpc.go +++ b/client/grpc/grpc.go @@ -445,6 +445,10 @@ func (g *grpcClient) Call(ctx context.Context, req client.Request, rsp interface // call backoff first. Someone may want an initial start delay t, err := callOpts.Backoff(ctx, req, i) if err != nil { + if verr, ok := err.(*errors.Error); ok { + return verr + } + return errors.InternalServerError("go.micro.client", err.Error()) }