mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 22:36:02 +03:00
15374a31dd
Lifted from / inspired by a similar change in graphql/graphql-js#722, this creates a new function `printError()` (and uses it as the implementation for `GraphQLError#toString()`) which prints location information in the context of an error. This is moved from the syntax error where it used to be hard-coded, so it may now be used to format validation errors, value coercion errors, or any other error which may be associated with a location. ref: graphql/graphql-js BREAKING CHANGE: The SyntaxError message does not contain the codeframe anymore and only the message, (string) $error will print the codeframe. |
||
---|---|---|
.. | ||
Error | ||
Executor | ||
Language | ||
Server | ||
Type | ||
Utils | ||
Validator | ||
Deferred.php | ||
deprecated.php | ||
Error.php | ||
GraphQL.php | ||
Schema.php | ||
Server.php | ||
Utils.php |