Improved error page
This commit is contained in:
parent
42a9d7fc94
commit
a671f4d81d
|
@ -39,7 +39,7 @@ abstract class Controller
|
|||
|
||||
public function __construct(Config $config, Request $request, Response $response)
|
||||
{
|
||||
$this->config = $config;
|
||||
$this->config = $config;
|
||||
$this->request = $request;
|
||||
$this->response = $response;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,15 @@
|
|||
<h2 class="box-title">Sorry, there was a problem</h2>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
/** @var $exception \Exception */
|
||||
?>
|
||||
<div class="box-body">
|
||||
<?php print $exception->getMessage(); ?>
|
||||
<?= $exception->getMessage(); ?><br />
|
||||
File: <?= $exception->getFile(); ?><br />
|
||||
Line: <?= $exception->getLine(); ?><br />
|
||||
<pre>
|
||||
<?= $exception->getTraceAsString(); ?>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
Loading…
Reference in a new issue