common_config('site', 'name'),
common_config('site', 'email')
);
+
+ $dac = new DBErrorAction($msg, 500);
+ $dac->showPage();
} else {
- // TRANS: Error message.
- $msg = _('An important error occured, probably related to email setup. '.
- 'Check logfiles for more info.'
- );
+ $sac = new ServerErrorAction($error->getMessage(), 500, $error);
+ $sac->showPage();
}
- $dac = new DBErrorAction($msg, 500);
- $dac->showPage();
-
} catch (Exception $e) {
// TRANS: Error message.
echo _('An error occurred.');