Issue #1818692 by mbrett5062: Improved error message.
parent
0471b498f5
commit
35b78b8cb2
core
includes
lib/Drupal/Core
|
@ -273,7 +273,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
|
|||
// We fallback to a maintenance page at this point, because the page generation
|
||||
// itself can generate errors.
|
||||
// Should not translate the string to avoid errors producing more errors.
|
||||
$output = theme('maintenance_page', array('content' => 'The website encountered an unexpected error. Please try again later.'));
|
||||
$output = theme('maintenance_page', array('content' => 'The website has encountered an error. Please try again later.'));
|
||||
|
||||
$response = new Response($output, 500);
|
||||
if ($fatal) {
|
||||
|
|
|
@ -266,7 +266,7 @@ class ExceptionController extends ContainerAware {
|
|||
drupal_set_title(t('Error'));
|
||||
// We fallback to a maintenance page at this point, because the page
|
||||
// generation itself can generate errors.
|
||||
$output = theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.')));
|
||||
$output = theme('maintenance_page', array('content' => t('The website has encountered an error. Please try again later.')));
|
||||
|
||||
$response = new Response($output, 500);
|
||||
$response->setStatusCode(500, '500 Service unavailable (with message)');
|
||||
|
|
Loading…
Reference in New Issue