abort messages with http error code
[sheet.git] / sample.plp
index 33d06e909d878f45197a09bd8b139e6d5c5e64f3..f824e1458e39e4f24356267692f28ac8900090ff 100644 (file)
@@ -10,7 +10,7 @@ Html({
 });
 
 open my $source, '<', $textinc
-       or die "Could not open text at $textinc: $!\n";
+       or Abort("Could not open text at $textinc", 501, $!);
 local $/ = "\n\n";
 
 my $top = readline $source;