Skip to content

Commit

Permalink
log error before overwriting message
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercactapus committed Nov 3, 2020
1 parent 1730c8a commit 31a8bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql2/graphqlapp/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ func (a *App) Handler() http.Handler {
}

if isUnsafe && !isGQLValidation(gqlErr) {
gqlErr.Message = safeErr.Error()
log.Log(ctx, err)
gqlErr.Message = safeErr.Error()
}

var multiFieldErr validation.MultiFieldError
Expand Down

0 comments on commit 31a8bb7

Please sign in to comment.