Restore ErrorHandler->fatal handling of no DB connection. Fixes bug #11494.
This commit is contained in:
parent
52162f64cf
commit
3b3347c4a8
3 changed files with 39 additions and 34 deletions
|
|
@ -232,6 +232,7 @@ sub fatal {
|
|||
if (! defined $self->session->db(1)) {
|
||||
# We can't even _determine_ whether we can show the debug text. Punt.
|
||||
$self->session->output->print("<h1>Fatal Internal Error</h1>");
|
||||
$self->session->output->print("<p>".$message."</p>");
|
||||
}
|
||||
elsif ($self->canShowDebug()) {
|
||||
$self->session->output->print("<h1>WebGUI Fatal Error</h1><p>Something unexpected happened that caused this system to fault.</p>\n",1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue