Merge pull request #3612 from gonimar/patch-16

Fix ErrorHandler
This commit is contained in:
Paul Klimov
2014-05-28 10:35:25 +03:00

View File

@@ -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) {