From: Joey Hess Date: Sun, 16 Aug 2009 17:47:04 +0000 (-0400) Subject: created_before/after: throw error if specified page does not exist X-Git-Tag: 3.1415926~104 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8fd8583408a12d670b370716f4b7627a49533e0;p=ikiwiki.git created_before/after: throw error if specified page does not exist This assumes that no ctime means the page doesn't exist, which seems reasonable. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index bac48c9a4..43ffb1fd8 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2056,7 +2056,7 @@ sub match_created_before ($$;@) { } } else { - return IkiWiki::FailReason->new("$testpage has no ctime"); + return IkiWiki::ErrorReason->new("$testpage does not exist"); } } @@ -2076,7 +2076,7 @@ sub match_created_after ($$;@) { } } else { - return IkiWiki::FailReason->new("$testpage has no ctime"); + return IkiWiki::ErrorReason->new("$testpage does not exist"); } }