From a3a7434f2cd9960506cfe334341ce105ad538565 Mon Sep 17 00:00:00 2001 From: ben-toogood Date: Mon, 20 Jul 2020 10:04:51 +0100 Subject: [PATCH] client/grpc: fix error panic (#1860) --- client/grpc/error.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/grpc/error.go b/client/grpc/error.go index 1cd36842..8088c552 100644 --- a/client/grpc/error.go +++ b/client/grpc/error.go @@ -24,7 +24,9 @@ func microError(err error) error { // return first error from details if details := s.Details(); len(details) > 0 { - return microError(details[0].(error)) + if verr, ok := details[0].(error); ok { + return microError(verr) + } } // try to decode micro *errors.Error