Open kellenmace opened 3 years ago
👍 Feel free to create PR for that and it will be merged
I tried to swap this out with GraphQL\Error\UserError
like in my example above, but it still does not result in the error message being returned in the response. Maybe that needs to happen at a different hook or something - I'm not sure.
When the plugin is installed on a new WordPress site and the developer attempts to make a GraphQL request before generating the blocks registry for the first time, the following exception is thrown in PHP:
None of that wording comes through in the GraphQL response, though. All the developer sees is this, even with WPGraphQL Debug Mode enabled:
Ideally, this wording would be included in the response so the developer knows what the problem is.
Using this instead may fix the issue: