X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/f56b4ebec8d7670a92fc941e9efd9ebe5d0c6f53..33e3013acbef27ba49fa091389ed8bf4096fa860:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index 963b8a6..c6b0c84 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -10,6 +10,11 @@ use File::stat 'stat'; use HTTP::Date; use Shiar_Sheet::KeySigns qw(%sign); +$PLP::ERROR = sub { + my ($text, $html) = @_; + print '

Fatal error: '.$html."

\n\n"; +}; + our $style; our $showkeys = !exists $get{keys} ? undef : ($get{keys} ne '0' && ($get{keys} || 'always'));