Skip to content

Instantly share code, notes, and snippets.

@weierophinney
Created February 24, 2012 16:04
Show Gist options
  • Save weierophinney/1901773 to your computer and use it in GitHub Desktop.
Save weierophinney/1901773 to your computer and use it in GitHub Desktop.
<div class="code_500">
<h2>Application Error</h2>
<p>
An error occurred processing this page; please try again later.
</p>
<?php
if (!$this->display_exceptions) {
echo "<p>Display exceptions is disabled</p>\n";
return;
}
$exception = $this->exception;
if (!$exception instanceof \Exception) {
echo "<p>Invalid exception found</p>\n";
return;
}
?>
<h3>Exception information:</h3>
<p>
<b>Message:</b> <?php echo $this->vars()->escape($exception->getMessage()) ?>
</p>
<h3>Stack trace:</h3>
<pre>
<?php echo $exception->getTraceAsString() ?>
</pre>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment