Commit 2967c5c0 authored by Brion Vibber's avatar Brion Vibber

issue #3261 -- fix generic exception handler to pass through generic exception...

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.
parent fcc4bbde
......@@ -116,16 +116,14 @@ function handleError($error)
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.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment