mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Fix ErrorHandler
This commit is contained in:
@ -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