Mercurial > SimpleWebPresenter
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 79:9b490aa11124 | 82:4acaab0b02e2 |
|---|---|
| 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { | 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { |
| 22 var_dump($_SERVER); | 22 var_dump($_SERVER); |
| 23 } | 23 } |
| 24 | 24 |
| 25 try { | 25 try { |
| 26 $input = new InputParser(basePath() . "/master.xml", $cache); | 26 $input = new InputParser(basePath() . "/master.xml", $cache); |
| 27 | 27 $input->genPage(); |
| 28 $input->genPage(); | |
| 29 } | 28 } |
| 30 catch (Exception $e) { | 29 catch (Exception $e) { |
| 31 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); | 30 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); |
| 32 } | 31 } |
| 33 /// @endcond | 32 /// @endcond |
