When an unhandled error occurs, the front side gets a 500 error without any information about the error. It just receives this:
{
"statusCode": 500,
"message": "Internal server error"
}
But when I check the console, I see what happened and what the error message is. It's ok in the development environment but it's hard to figure out in production. How can I return a complete error message in production instead of just a simple message like "Internal server error"?