Merge pull request #2602 from dmage/errmessage

Use e.Message field instead of e.Code.Message()
This commit is contained in:
Olivier 2018-08-09 15:21:32 -07:00 committed by GitHub
commit 0cbe144826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,7 +753,7 @@ func (app *App) logError(ctx context.Context, errors errcode.Errors) {
case errcode.Error:
e, _ := e1.(errcode.Error)
c = context.WithValue(ctx, errCodeKey{}, e.Code)
c = context.WithValue(c, errMessageKey{}, e.Code.Message())
c = context.WithValue(c, errMessageKey{}, e.Message)
c = context.WithValue(c, errDetailKey{}, e.Detail)
case errcode.ErrorCode:
e, _ := e1.(errcode.ErrorCode)