diff --git a/core/includes/errors.inc b/core/includes/errors.inc index fa3bc6baa96945a2cc98256fb5510003568850d0..5e38a973cca8fbe56c94a1493484baf02c849a88 100644 --- a/core/includes/errors.inc +++ b/core/includes/errors.inc @@ -233,7 +233,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. - $message = 'The website has encountered an error. Please try again later.'; + $message = 'The website 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 e0a1343d24f81d4409ff0cab5e1e253ed4470c12..7e87f4cbea2f82273f057244c798485c35a0bb56 100644 --- a/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/DefaultExceptionSubscriber.php @@ -128,7 +128,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 encountered an unexpected error. Please try again later.'); $output = $this->bareHtmlPageRenderer->renderBarePage(['#markup' => $content], $this->t('Error'), 'maintenance_page'); $response = new Response($output);