summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-22 11:33:56 -0700
committerBrion Vibber <brion@pobox.com>2010-03-22 11:33:56 -0700
commit4168b9cec1f7b2e6421c018e56e3b9a13c14d581 (patch)
tree17444dd9d6191d93b422d1cd53b67d11ed72ba97 /index.php
parent3bb639699c7a5e7e96c0d048adbe48a3ed486fc9 (diff)
Log backtraces for non-ClientException exceptions caught at the top-level handler.
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 36ba3a0d2..ea5c80277 100644
--- a/index.php
+++ b/index.php
@@ -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();
}
}