Skip to content

Commit 15040d0

Browse files
authoredApr 7, 2022
Update documentation on deprecated formatError(..) (#3512)
1 parent ff06428 commit 15040d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/error/GraphQLError.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export function printError(error: GraphQLError): string {
290290
* Given a GraphQLError, format it according to the rules described by the
291291
* Response Format, Errors section of the GraphQL Specification.
292292
*
293-
* @deprecated Please use `error.toString` instead. Will be removed in v17
293+
* @deprecated Please use `error.toJSON` instead. Will be removed in v17
294294
*/
295295
export function formatError(error: GraphQLError): GraphQLFormattedError {
296296
return error.toJSON();

0 commit comments

Comments
 (0)
Please sign in to comment.