1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-07 13:31:50 +02:00

display error messages (#727)

Signed-off-by: storyicon <storyicon@foxmail.com>
This commit is contained in:
storyicon 2021-02-25 09:43:49 +08:00 committed by GitHub
parent 4f778e5fdf
commit 0008794b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,6 +72,7 @@ func errorEncode(err error) error {
if !ok {
se = &errors.StatusError{
Code: 2,
Message: err.Error(),
}
}
gs := status.Newf(codes.Code(se.Code), "%s: %s", se.Reason, se.Message)