Skip to content

Commit

Permalink
Update documentation on deprecated formatError(..) (#3512)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch2344 committed Apr 7, 2022
1 parent ff06428 commit 15040d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error/GraphQLError.ts
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 15040d0

Please sign in to comment.