Commit 62f6333a authored by catch's avatar catch

Issue #1536868 by superspring: Fixed No trace when database is down.

parent 983bfd1e
......@@ -3403,12 +3403,14 @@ function _drupal_shutdown_function() {
}
}
catch (Exception $exception) {
// If we are displaying errors, then do so with no possibility of a further uncaught exception being thrown.
require_once DRUPAL_ROOT . '/core/includes/errors.inc';
if (error_displayable()) {
// If we are displaying errors, then do so with no possibility of a further
// uncaught exception being thrown.
require_once DRUPAL_ROOT . '/core/includes/errors.inc';
if (error_displayable()) {
print '<h1>Uncaught exception thrown in shutdown function.</h1>';
print '<p>' . _drupal_render_exception_safe($exception) . '</p><hr />';
}
error_log($exception);
}
}
......
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