Commit ab91017d by Paul Klimov

Merge pull request #3612 from gonimar/patch-16

Fix ErrorHandler
parents 0de53fe0 9b318702
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment