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