Mercurial > SimpleWebPresenter
diff index.php @ 82:4acaab0b02e2
Catch exception at toplevel of all access pages.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 16:51:07 +0200 |
| parents | 947d53f95ccd |
| children | 7a9c45b53866 |
line wrap: on
line diff
--- a/index.php Fri Oct 12 16:47:25 2012 +0200 +++ b/index.php Mon Oct 15 16:51:07 2012 +0200 @@ -23,9 +23,8 @@ } try { -$input = new InputParser(basePath() . "/master.xml", $cache); - -$input->genPage(); + $input = new InputParser(basePath() . "/master.xml", $cache); + $input->genPage(); } catch (Exception $e) { errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
