Skip to content

Commit

Permalink
Update documentation on deprecated formatError(..)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch2344 authored Mar 18, 2022
1 parent da57238 commit a3b8b9e
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 a3b8b9e

Please sign in to comment.