From: Mischa POSLAWSKY Date: Sat, 16 Oct 2021 15:50:38 +0000 (+0200) Subject: sc: apply html paging to 404 errors X-Git-Tag: v1.13~99 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/f7fa44273f72202f99ac370372908cb0cae7d420 sc: apply html paging to 404 errors --- diff --git a/sc.plp b/sc.plp index c969185..042719a 100644 --- a/sc.plp +++ b/sc.plp @@ -24,8 +24,8 @@ my %scvers = ( $Request ||= 'bw'; $Request = 'lotv' if $Request eq '2'; -my %scver = %{ $scvers{$Request} } - or Abort("Requested version $Request not available", '404 unknown'); +my %scver = %{ $scvers{$Request} // {} } + or Html(), Abort("Requested version $Request not available", '404 request not found'); my $datafile = "sc-units-$Request.inc.pl";