foreach my $param (qw{match pagespec}) {
if (! exists $params{$param}) {
- return "[[testpagespec missing $param parameter]]";
+ error sprintf(gettext("%s parameter is required"), $param);
}
}
if ($ret) {
return "match: $ret";
}
- elsif (! defined $ret) {
- return "match failed: $@";
- }
else {
return "no match: $ret";
}