mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
minor fix of exception display.
This commit is contained in:
@ -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) ?>
|
||||
|
Reference in New Issue
Block a user