From 2bb81ff23253fcaef32399fadcce73a542113194 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 29 Apr 2021 14:31:24 +0300 Subject: [PATCH] merge https://github.com/asim/go-micro/pull/2158 Signed-off-by: Vasiliy Tolstov --- error.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(), + } }