Fix ErrorHandler

This commit is contained in:
Sergey Gonimar
2014-05-28 12:34:05 +06:00
parent 0de53fe073
commit 9b31870286

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