Skip to content

Commit

Permalink
Print info if some was received
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Dec 3, 2020
1 parent 7231921 commit b4601cd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Examples/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@
</div>

<div class="container">
<?php if( isset( $Exception ) ): ?>
<div class="panel panel-primary">
<div class="panel-heading"><?php echo Get_Class( $Exception ); ?> at line <?php echo $Exception->getLine( ); ?></div>
<p><b><?php echo htmlspecialchars( $Exception->getMessage( ) ); ?></b></p>
<p><?php echo nl2br( $e->getTraceAsString(), false ); ?></p>
<?php if( $Exception !== '' ): ?>
<div class="panel panel-error">
<pre class="panel-body"><?php echo htmlspecialchars( $Exception->__toString( ) ); ?></pre>
</div>
<?php else: ?>
<?php endif; ?>
<div class="row">
<div class="col-sm-6">
<table class="table table-bordered table-striped">
Expand Down Expand Up @@ -193,7 +191,6 @@
</table>
</div>
</div>
<?php endif; ?>
</div>
</body>
</html>

0 comments on commit b4601cd

Please sign in to comment.