minor fix of exception display.

This commit is contained in:
Qiang Xue
2014-01-13 22:16:11 -05:00
parent f4a8e895f7
commit 4d8d3eaf2c

View File

@ -360,7 +360,7 @@ pre .diff .change{
?></h1>
<?php endif; ?>
<h2><?= nl2br($handler->htmlEncode($exception->getMessage())) ?></h2>
<?php if ($exception instanceof \yii\db\Exception): ?>
<?php if ($exception instanceof \yii\db\Exception && $exception->errorInfo !== null): ?>
<pre><?= var_export($exception->errorInfo, true) ?></pre>
<?php endif; ?>
<?= $handler->renderPreviousExceptions($exception) ?>