diff --git a/error.go b/error.go index 6ca8baa..4d48926 100644 --- a/error.go +++ b/error.go @@ -35,5 +35,10 @@ func microError(err error) error { } // fallback - return errors.InternalServerError("go.micro.client", s.Message()) + return &errors.Error{ + Id: "go.micro.client", + Code: int32(s.Code()), + Detail: s.Message(), + Status: s.Code().String(), + } }