Skip to content

Commit b4601cd

Browse files
committed
Print info if some was received
1 parent 7231921 commit b4601cd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Examples/View.php

+4-7
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,11 @@
8787
</div>
8888

8989
<div class="container">
90-
<?php if( isset( $Exception ) ): ?>
91-
<div class="panel panel-primary">
92-
<div class="panel-heading"><?php echo Get_Class( $Exception ); ?> at line <?php echo $Exception->getLine( ); ?></div>
93-
<p><b><?php echo htmlspecialchars( $Exception->getMessage( ) ); ?></b></p>
94-
<p><?php echo nl2br( $e->getTraceAsString(), false ); ?></p>
90+
<?php if( $Exception !== '' ): ?>
91+
<div class="panel panel-error">
92+
<pre class="panel-body"><?php echo htmlspecialchars( $Exception->__toString( ) ); ?></pre>
9593
</div>
96-
<?php else: ?>
94+
<?php endif; ?>
9795
<div class="row">
9896
<div class="col-sm-6">
9997
<table class="table table-bordered table-striped">
@@ -193,7 +191,6 @@
193191
</table>
194192
</div>
195193
</div>
196-
<?php endif; ?>
197194
</div>
198195
</body>
199196
</html>

0 commit comments

Comments
 (0)