Restore ErrorHandler->fatal handling of no DB connection. Fixes bug #11494.

This commit is contained in:
Colin Kuskie 2010-03-30 15:11:26 -07:00
parent 52162f64cf
commit 3b3347c4a8
3 changed files with 39 additions and 34 deletions

View file

@ -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);