common: common Alert function to format error messages
[sheet.git] / latin.plp
index ed68caeaf2e6940cd5ccbf33ec2f9463485c6e12..529b334574d421c496842bef61a00da396238c60 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -1,5 +1,4 @@
 <(common.inc.plp)><:
-use 5.014;
 
 Html({
        title => 'latin alphabet cheat sheet',
@@ -49,7 +48,7 @@ and <a href="/unicode">common chars</a>.</p>
 <:
 my @table = do 'writing-latn.inc.pl';
 if ($! or $@) {
-       printf "<p class=error>Table data not found: <em>%s</em>.</p>\n", $@ || $!;
+       Alert("Table data not found", $@ || $!);
 }
 else {
        say '<table class="glyphs">';