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:
parent
fcc4bbde19
commit
2967c5c0fa
10
index.php
10
index.php
|
@ -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();
|
||||
} else {
|
||||
$sac = new ServerErrorAction($error->getMessage(), 500, $error);
|
||||
$sac->showPage();
|
||||
}
|
||||
|
||||
} catch (Exception $e) {
|
||||
// TRANS: Error message.
|
||||
|
|
Loading…
Reference in New Issue
Block a user