Skip to content

Commit

Permalink
Use constant format string
Browse files Browse the repository at this point in the history
Cleans up a lint warning, probably wouldn't be an issue unless a
malicious `error` returned a weird string.
  • Loading branch information
pkqk committed Oct 24, 2024
1 parent fc20027 commit 19bd569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executable_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (s *ExecutableSchema) ExecuteQuery(ctx context.Context) *graphql.Response {
})
if err != nil {
traceErr(err)
return s.interceptResponse(ctx, operation.Name, operationCtx.RawQuery, variables, graphql.ErrorResponse(ctx, err.Error()))
return s.interceptResponse(ctx, operation.Name, operationCtx.RawQuery, variables, graphql.ErrorResponse(ctx, "%s", err.Error()))
}

extensions := make(map[string]interface{})
Expand Down

0 comments on commit 19bd569

Please sign in to comment.