From 7bc438a5346023c718671fd8b56f40aa9ddd092c Mon Sep 17 00:00:00 2001 From: Oleg Bulatov Date: Mon, 4 Jun 2018 14:22:33 +0200 Subject: [PATCH] Use e.Message field instead of e.Code.Message() Signed-off-by: Oleg Bulatov --- registry/handlers/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index a40a4df3..c863a0ad 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -746,7 +746,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)