summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/vndb.pl18
1 files changed, 17 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index c1810148..d7269bb4 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -16,7 +16,7 @@ use lib $ROOT.'/yawf/lib';
use lib $ROOT.'/lib';
-use YAWF;
+use YAWF ':html';
our(%O, %S);
@@ -31,6 +31,7 @@ YAWF::init(
namespace => 'VNDB',
object_data => \%S,
pre_request_handler => \&reqinit,
+ error_404_handler => \&handle404,
);
@@ -39,3 +40,18 @@ sub reqinit {
$self->authInit;
}
+
+sub handle404 {
+ my $self = shift;
+ $self->htmlHeader;
+ div class => 'mainbox';
+ h1 'Page not found';
+ div class => 'warning';
+ h2 'Oops!';
+ p "It seems the page you were looking for does not exists,\n".
+ "you may want to try using the menu on your left to find what you are looking for.";
+ end;
+ end;
+ $self->htmlFooter;
+}
+