graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Improve exception display for `GraphQLException` and `GraphQLError`

Open 9999years opened this issue 5 months ago • 2 comments

Before:

GraphQLException [GraphQLError {message = "Something went wrong!", locations = Just [GraphQLErrorLoc {errorLine = 10, errorCol = 3}], path = Just [String "my_query.graphql"], extensions = Just (Object (fromList [("complexity",Number 2.0)]))}]

After:

GraphQL errors:
At 10:3: Something went wrong!
Path: "my_query.graphql"
Extensions: {"complexity":2}

Closes #91

9999years avatar Sep 19 '24 19:09 9999years