abort messages with http error code
[sheet.git] / termcol.plp
index c510cd24d1bcdbdcd5bf4e151f8dc6d6d02f2f11..281d33ca5958290a0ecb4fef2787a48057f8767b 100644 (file)
@@ -45,7 +45,7 @@ use List::Util qw( min max );
 use POSIX qw( ceil );
 
 my $palettes = do 'termcol.inc.pl';
-die "Cannot open palette data: $_\n" for $@ || $! || ();
+Abort("Cannot open palette data", 501, $_) for $@ || $! || ();
 
 sub colcell {
        my $name = shift // return "<td>\n";