display error messages (#727)

Signed-off-by: storyicon <storyicon@foxmail.com>
pull/730/head
storyicon 4 years ago committed by GitHub
parent 4f778e5fdf
commit 0008794b80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      middleware/status/status.go

@ -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)

Loading…
Cancel
Save