added a not found handler, and better debug handling

This commit is contained in:
JT Smith 2007-12-14 22:43:08 +00:00
parent 1fc11fbda8
commit 09ac71093b
3 changed files with 68 additions and 14 deletions

View file

@ -64,7 +64,10 @@ sub handler {
use strict;
if ($output) {
unless ($output eq "none" || $output eq "redirect") {
$session->output->print($output);
$session->output->print($output) unless ($output eq "chunked");
if ($session->errorHandler->canShowDebug()) {
$session->output->print($session->errorHandler->showDebug(),1);
}
}
last;
}