diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-22 11:33:56 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-22 11:33:56 -0700 |
commit | 4168b9cec1f7b2e6421c018e56e3b9a13c14d581 (patch) | |
tree | 17444dd9d6191d93b422d1cd53b67d11ed72ba97 /index.php | |
parent | 3bb639699c7a5e7e96c0d048adbe48a3ed486fc9 (diff) |
Log backtraces for non-ClientException exceptions caught at the top-level handler.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -324,10 +324,10 @@ function main() $cac = new ClientErrorAction($cex->getMessage(), $cex->getCode()); $cac->showPage(); } catch (ServerException $sex) { // snort snort guffaw - $sac = new ServerErrorAction($sex->getMessage(), $sex->getCode()); + $sac = new ServerErrorAction($sex->getMessage(), $sex->getCode(), $sex); $sac->showPage(); } catch (Exception $ex) { - $sac = new ServerErrorAction($ex->getMessage()); + $sac = new ServerErrorAction($ex->getMessage(), 500, $ex); $sac->showPage(); } } |