Daniel Tschinder 15374a31dd New: printError()
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.
2018-02-12 12:23:39 +01:00
..
2018-02-10 18:43:26 +01:00
2018-02-10 18:43:26 +01:00
2018-02-10 18:43:26 +01:00
2018-02-12 12:23:39 +01:00
2018-02-12 12:23:39 +01:00
2018-02-11 21:08:53 +01:00
2018-02-12 12:23:39 +01:00
2018-02-11 21:08:53 +01:00
2017-10-04 12:06:25 -03:00