Commit aa621456 authored by Crell's avatar Crell
Browse files

More useful generic exception message.

parent 7492474b
......@@ -58,7 +58,7 @@ function execute(Request $request) {
// Either way, treat it as a server-level error and return an HTTP 500.
// By default, this will be an HTML-type response because that's a decent
// best guess if we don't know otherwise.
$response = new Response('An error occurred in the wrong place', 500);
$response = new Response('A fatal error occurred: ' . $e->getMessage(), 500);
return $response;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment