From 7437c047405583831c4dc56cd8ee06768bc68879 Mon Sep 17 00:00:00 2001
From: Mariano D'Agostino <dagmar@154086.no-reply.drupal.org>
Date: Tue, 30 Aug 2016 11:34:11 -0300
Subject: [PATCH] Issue #2792389: [BUGFIX] Error handler makes impossible fix
 #2775205

---
 src/Error/ErrorHandler.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Error/ErrorHandler.php b/src/Error/ErrorHandler.php
index 948bc30..c57fc33 100644
--- a/src/Error/ErrorHandler.php
+++ b/src/Error/ErrorHandler.php
@@ -14,8 +14,8 @@ class ErrorHandler extends ErrorHandlerBase {
     _drupal_error_handler($error_level, $message, $filename, $line, $context);
     $types = drupal_error_levels();
     list($severity_msg, $severity_level) = $types[$error_level];
-    // Only halt execution if the error is more severe than a notice.
-    if ($severity_level < 5) {
+    // Only halt execution if the error is more severe than a warning.
+    if ($severity_level < 4) {
       throw new HttpException(500, sprintf('[%s] %s', $severity_msg, $message), NULL, [], $error_level);
     }
   }
-- 
1.9.1

