Fixed exception viewing
This commit is contained in:
parent
34bf6b1db7
commit
885b2cf31f
1 changed files with 5 additions and 5 deletions
|
@ -2,15 +2,15 @@
|
||||||
echo '<h1>Unhandled exception</h1>';
|
echo '<h1>Unhandled exception</h1>';
|
||||||
echo '<p>';
|
echo '<p>';
|
||||||
printf('%s „%s” thrown at %s:%d',
|
printf('%s „%s” 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']))
|
||||||
|
|
Loading…
Reference in a new issue