diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-08-16 13:47:04 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-08-16 13:47:04 -0400 |
commit | e8fd8583408a12d670b370716f4b7627a49533e0 (patch) | |
tree | dfc171ea7c509c51813e70d29bef0339fbb32a50 /IkiWiki.pm | |
parent | 8b99e6874353a1b981490de8d96ca1945fc0b752 (diff) |
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.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 4 |
1 files 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"); } } |