diff --git a/core/includes/errors.inc b/core/includes/errors.inc index c0cf4e0..117f3bd 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -230,10 +230,10 @@ function _drupal_log_error($error, $fatal = FALSE) { } if ($fatal) { - // We fallback to a maintenance page at this point, because the page generation - // itself can generate errors. + // Fallback to a maintenance page, because the page generation itself can + // generate errors. // Should not translate the string to avoid errors producing more errors. - $message = 'The website has encountered an error. Please try again later.'; + $message = 'The website has encountered an unexpected error. Please try again later.'; if ($is_installer) { // install_display_output() prints the output and ends script execution. $output = array( diff --git a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php index 78405ae..e2846c0 100644 --- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php @@ -130,7 +130,7 @@ protected function onHtml(GetResponseForExceptionEvent $event) { drupal_set_message(SafeMarkup::set($message), $class, TRUE); } - $content = $this->t('The website has encountered an error. Please try again later.'); + $content = $this->t('The website has encountered an unexpected error. Please try again later.'); $output = $this->bareHtmlPageRenderer->renderBarePage(['#markup' => $content], $this->t('Error'), 'maintenance_page'); $response = new Response($output);