mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-13 20:59:12 +08:00
@@ -129,7 +129,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
|
||||
if (YII_DEBUG) {
|
||||
$array['stack-trace'] = explode("\n", $exception->getTraceAsString());
|
||||
if ($exception instanceof \yii\db\Exception) {
|
||||
$array['error-info'] = $this->errorInfo;
|
||||
$array['error-info'] = $exception->errorInfo;
|
||||
}
|
||||
}
|
||||
if (($prev = $exception->getPrevious()) !== null) {
|
||||
|
||||
Reference in New Issue
Block a user