From e8fd8583408a12d670b370716f4b7627a49533e0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 16 Aug 2009 13:47:04 -0400 Subject: 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. --- IkiWiki.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } } -- cgit v1.2.3