Commit 9b318702 by Sergey Gonimar

Fix ErrorHandler

parent 0de53fe0
...@@ -129,7 +129,7 @@ class ErrorHandler extends \yii\base\ErrorHandler ...@@ -129,7 +129,7 @@ class ErrorHandler extends \yii\base\ErrorHandler
if (YII_DEBUG) { if (YII_DEBUG) {
$array['stack-trace'] = explode("\n", $exception->getTraceAsString()); $array['stack-trace'] = explode("\n", $exception->getTraceAsString());
if ($exception instanceof \yii\db\Exception) { if ($exception instanceof \yii\db\Exception) {
$array['error-info'] = $this->errorInfo; $array['error-info'] = $exception->errorInfo;
} }
} }
if (($prev = $exception->getPrevious()) !== null) { 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