aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAlexander Kampmann <programmer@nurfuerspam.de>2012-04-09 00:45:10 +0200
committerAlexander Kampmann <programmer@nurfuerspam.de>2012-04-09 00:45:10 +0200
commit0d60dbef31ea645b8495d8e28fca6c248d20048b (patch)
treeab89e4c9de89b31973820402db4400cc10389ccb /index.php
parent5c0446975516f2b52b6cf51618e0b75af56de71b (diff)
downloadvolse-hubzilla-0d60dbef31ea645b8495d8e28fca6c248d20048b.tar.gz
volse-hubzilla-0d60dbef31ea645b8495d8e28fca6c248d20048b.tar.bz2
volse-hubzilla-0d60dbef31ea645b8495d8e28fca6c248d20048b.zip
added exceptions to dba class
added exception handling to index.php, please mind that there is no recovery at the moment added transactions to db update. Please mind that they might not be supported by db table engines. added admin email on failed updates added german translation for admin email
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1cb16778a..0cf74365c 100644
--- a/index.php
+++ b/index.php
@@ -11,6 +11,7 @@
* bootstrap the application
*
*/
+try {
require_once('boot.php');
@@ -370,3 +371,9 @@ else
session_write_close();
exit;
+} catch(Exception $ex) {
+// it may fail because logger uses the db,
+// but give it a try:
+logger('exception caught at index.php: '.$ex->getMessage());
+system_unavailable();
+} \ No newline at end of file