Skip to content
Snippets Groups Projects
Commit aa621456 authored by Larry Garfield's avatar Larry Garfield
Browse files

More useful generic exception message.

parent 7492474b
No related branches found
Tags 8.0-alpha4
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment