common: common Alert function to format error messages
[sheet.git] / latin.plp
index 9dd8fe93ada0c9e16377184dc1d061a179d8acc0..529b334574d421c496842bef61a00da396238c60 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -48,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">';