Skip to content

Commit

Permalink
Change how we display errors and start a session
Browse files Browse the repository at this point in the history
  • Loading branch information
devsavage committed Apr 5, 2022
1 parent dfb850e commit e6ad531
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/App/Http/Handlers/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function __invoke(ServerRequestInterface $request, Throwable $exception,

$response = $this->_response->createResponse(500);
return $this->_view->render($response, "error/500.twig", [
"title" => "{$exception->getCode()} {$exception->getMessage()}",
"description" => $exception->getMessage(),
"title" => "Server Error",
"description" => "An exception has occurred and we cannot continue.",
]);
}
}
Expand Down
2 changes: 2 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use SavageDev\DI\Bridge\Slim\Bridge;
use Symfony\Component\Finder\Finder;

session_start();

define("INC_ROOT", __DIR__);

require INC_ROOT . "/../vendor/autoload.php";
Expand Down

0 comments on commit e6ad531

Please sign in to comment.