Friendlier 404 error

This commit is contained in:
Yorhel 2012-07-18 10:36:25 +02:00
parent 0738583243
commit 086615eb71

View file

@ -34,6 +34,15 @@ TUWF::set(
}
1;
},
error_404_handler => sub {
my $self = shift;
$self->resStatus(404);
my $title = 'No manual entry for '.$self->reqPath;
$self->htmlHeader(title => $title);
h1 $title;
txt 'That is, the page you were looking for doesn\'t exist.';
$self->htmlFooter;
},
);