X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=public%2Findex.php;h=7603f62973f67b31d91940ea33255e80e98b8129;hb=b0a2ea11d6b820abe4758aaf56e6d226ded72942;hp=8d0bf63970aeb79d4f3effa70f76893badc0e84e;hpb=ebc0d017c8a24bd16ca1f4347b39b07ba4349135;p=pharext%2Fpharext.org diff --git a/public/index.php b/public/index.php index 8d0bf63..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", "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. +

+
+ +
+ +
+ +