X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.php;h=7603f62973f67b31d91940ea33255e80e98b8129;hb=efea782d7086c58432477ce2847d2be1d8b25fa6;hp=5718129b2397f3b9e978b8511b630421b8083919;hpb=26494fb5cdfb9cf103904d10b6bda564bcf2d0bd;p=pharext%2Fpharext.org diff --git a/public/index.php b/public/index.php index 5718129..7603f62 100644 --- a/public/index.php +++ b/public/index.php @@ -2,6 +2,38 @@ namespace app; -$bootstrap = require "../app/bootstrap.php"; -$injector = $bootstrap(["config", "github", "plates", "model", "web"]); -$injector->execute(Web::class); +try { + $bootstrap = require "../app/bootstrap.php"; + $injector = $bootstrap(["config", "github", "plates", "model", "web"]); + return $injector->execute(Web::class); +} catch (\Exception $e) { + $error = $e->getMessage(); + $stack = $e->getTraceAsString(); + @header("X-Exception: ".get_class($e), false, 500); + Web::cleanBuffers(); +} +?> + + + + Application Error + + + +
+
+

Application Error

+

Aww, you really gotta do that?!

+

+ +

+

+ Sorry, anyway. +

+
+ +
+ +
+ +