]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/testpagespec.pm
don't show an error if the image is missing, instead, a broken link
[ikiwiki.git] / IkiWiki / Plugin / testpagespec.pm
index a0bb2ff3128e4f9a5d3853f5006aa0d76a074004..4faef7be197a8b20362132521ae67de2976a3ad8 100644 (file)
@@ -14,7 +14,7 @@ sub preprocess (@) { #{{{
        
        foreach my $param (qw{match pagespec}) {
                if (! exists $params{$param}) {
-                       return "[[testpagespec missing $param parameter]]";
+                       error sprintf(gettext("%s parameter is required"), $param);
                }
        }
 
@@ -25,9 +25,6 @@ sub preprocess (@) { #{{{
        if ($ret) {
                return "match: $ret";
        }
-       elsif (! defined $ret) {
-               return "match failed: $@";
-       }
        else {
                return "no match: $ret";
        }