I am using Api Platform with graphql.
Symfony Flex, Symfony 4.4, api-platform/core v2.5.6.
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