diff --git a/core/includes/errors.inc b/core/includes/errors.inc
index e3fd225..d10cf67 100644
--- a/core/includes/errors.inc
+++ b/core/includes/errors.inc
@@ -180,7 +180,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
       // Should not translate the string to avoid errors producing more errors.
       $response->setContent(html_entity_decode(strip_tags(SafeMarkup::format('%type: @message in %function (line %line of %file).', $error))) . "\n");
       $response->send();
-      exit;
+      exit(1);
     }
   }
 
