kevin_zhangl 3 лет назад
Родитель
Сommit
63b970c7f6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      vendor/yiisoft/yii2/web/ErrorHandler.php

+ 1 - 1
vendor/yiisoft/yii2/web/ErrorHandler.php

@@ -149,7 +149,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
             $exception = new HttpException(500, Yii::t('yii', 'An internal server error occurred.'));
         }
 
-        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index'];
+        $errorOutline = ['AR_', 'PHP', 'Undefined', 'Undefined index', 'SQLSTATE'];
         foreach ($errorOutline as $item) {
             if (false !== strpos($exception->getMessage(), $item)) {
                 $it = [