I am using api platform with graphql.
When I throw exceptions in prod mode the only thing I see is the general 'Internal server error' message instead of my own exceptions messages.
{
"errors": [
{
"message": "Internal server error",
"extensions": {
"category": "internal"
}
}
}
How is it possible when I throw my own exceptions to see the messages?
throw new \Exception('Show this exception message');
Thanks
Read more here: https://stackoverflow.com/questions/66325595/api-platform-graphql-exceptions
Content Attribution
This content was originally published by Joost at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.