issue #3261 -- fix generic exception handler to pass through generic exception info, as already done for exceptions happening within an action. This fixes things like addPlugin() failures being hidden with a generic message.

If any email issues remain, they should be treated specifically if special treatment is needed.
This commit is contained in:
Brion Vibber 2011-07-26 15:56:04 -07:00
parent fcc4bbde19
commit 2967c5c0fa
1 changed files with 6 additions and 8 deletions

View File

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