Skip to content

Commit

Permalink
GraphQLError: fix method in deprecation method
Browse files Browse the repository at this point in the history
  • Loading branch information
glasser authored Mar 23, 2022
1 parent e1726df commit 3a63d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error/GraphQLError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export function printError(error: GraphQLError): string {
* Given a GraphQLError, format it according to the rules described by the
* Response Format, Errors section of the GraphQL Specification.
*
* @deprecated Please use `error.toString` instead. Will be removed in v17
* @deprecated Please use `error.toJSON` instead. Will be removed in v17
*/
export function formatError(error: GraphQLError): GraphQLFormattedError {
return error.toJSON();
Expand Down

0 comments on commit 3a63d81

Please sign in to comment.