]> sipb.mit.edu Git - ikiwiki.git/commitdiff
created_before/after: throw error if specified page does not exist
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:47:04 +0000 (13:47 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 17:47:04 +0000 (13:47 -0400)
This assumes that no ctime means the page doesn't exist, which seems
reasonable.

IkiWiki.pm

index bac48c9a409ecbc0af863d58dbdcede06b89c265..43ffb1fd8362802dc19f06074437e1f0a4c87f27 100644 (file)
@@ -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");
        }
 }