From a384632c9398194dd7f7d1d4490e21888b0b668e 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) --- error.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/error.go b/error.go index 1cd3684..8088c55 100644 --- a/error.go +++ b/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