Fixed exception viewing

This commit is contained in:
Marcin Kurczewski 2013-10-07 00:39:41 +02:00
parent 34bf6b1db7
commit 885b2cf31f

View file

@ -2,15 +2,15 @@
echo '<h1>Unhandled exception</h1>'; echo '<h1>Unhandled exception</h1>';
echo '<p>'; echo '<p>';
printf('%s &bdquo;%s&rdquo; thrown at %s:%d', printf('%s &bdquo;%s&rdquo; thrown at %s:%d',
get_class($this->context->exception), get_class($this->context->transport->exception),
$this->context->exception->getMessage(), $this->context->transport->exception->getMessage(),
$this->context->exception->getFile(), $this->context->transport->exception->getFile(),
$this->context->exception->getLine()); $this->context->transport->exception->getLine());
echo '</p>'; echo '</p>';
echo '<ul>'; echo '<ul>';
$count = 0; $count = 0;
foreach ($this->context->exception->getTrace() as $frame) foreach ($this->context->transport->exception->getTrace() as $frame)
{ {
$args = ''; $args = '';
if (isset($frame['args'])) if (isset($frame['args']))