aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-08 18:47:48 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-08 18:47:48 -0400
commitd5f014449511460d4da22591379b30bd5de86145 (patch)
treeaf91c90893c8487e2342e92d9ad7ff49a03a891b /IkiWiki.pm
parent1abbc6a4041e752fbec9b947a9d453b3b126c120 (diff)
downloadikiwiki-d5f014449511460d4da22591379b30bd5de86145.tar
ikiwiki-d5f014449511460d4da22591379b30bd5de86145.tar.gz
use_pagespec: do not fail with error when unable to match, unless it fails
with an ErrorReason
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index c787612e1..c735b26c8 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1876,7 +1876,9 @@ sub use_pagespec ($$;@) {
foreach my $i (keys %i) {
$depends_simple{$page}{lc $i} |= $i{$i};
}
- error(sprintf(gettext("cannot match pages: %s"), $firstfail));
+
+ error(sprintf(gettext("cannot match pages: %s"), $firstfail))
+ if $firstfail->isa("IkiWiki::ErrorReason");
}
return @ret;