22 lines
395 B
PHP
22 lines
395 B
PHP
|
<?php
|
||
|
namespace Aleister;
|
||
|
|
||
|
require_once __DIR__ . '/../aleister.php';
|
||
|
|
||
|
set_exception_handler(function(\Throwable $ex) {
|
||
|
\Sentry\captureException($ex);
|
||
|
|
||
|
ob_clean();
|
||
|
|
||
|
http_response_code(500);
|
||
|
header('Content-Type: text/plain; charset=utf-8');
|
||
|
|
||
|
if(CRW_DEBUG)
|
||
|
echo (string)$ex;
|
||
|
else
|
||
|
echo 'Internal Server Error';
|
||
|
exit;
|
||
|
});
|
||
|
|
||
|
$ctx->getRouter()->dispatch();
|