Commit 9b318702 by Sergey Gonimar

Fix ErrorHandler

parent 0de53fe0
......@@ -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