Friendlier 404 error
This commit is contained in:
parent
0738583243
commit
086615eb71
1 changed files with 9 additions and 0 deletions
|
|
@ -34,6 +34,15 @@ TUWF::set(
|
||||||
}
|
}
|
||||||
1;
|
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;
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue