Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Catch exceptions that occur on bootstrap

When an exception is thrown on bootstrap (e.g. no connection to backend)
it is now catched within the index.php, since otherwise the exception is
not handled anywhere and shown to the user.
  • Loading branch information...
commit 36e962162ab2fb3840a43df9b2e799732b2c3c19 1 parent dbadac0
@pfrischmuth pfrischmuth authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.php
7 index.php
@@ -149,7 +149,12 @@ function class_alias($original, $alias)
class_alias('OntoWiki', 'OntoWiki_Application');
// bootstrap
+try {
+ $application->bootstrap();
+} catch (Exception $e) {
+ echo $e->getMessage();
+ return;
$event = new Erfurt_Event('onPostBootstrap');
$event->bootstrap = $application->getBootstrap();
Please sign in to comment.
Something went wrong with that request. Please try again.