aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-10-20 18:53:50 -0400
committerJoey Hess <joey@kitenet.net>2010-10-20 19:07:46 -0400
commit7e8064e9fa8b3f2c3c0bd0aa5458f00552398e06 (patch)
treeff46b7516a9920d177865f6fc8efe1a262a3619e /IkiWiki.pm
parent4a75dee651390b79ce4ceb1d951b02e28b3ce83a (diff)
downloadikiwiki-7e8064e9fa8b3f2c3c0bd0aa5458f00552398e06.tar
ikiwiki-7e8064e9fa8b3f2c3c0bd0aa5458f00552398e06.tar.gz
add a hint that creation_month takes a number, not a month name
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 941ee13c4..1fa89586e 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -2610,7 +2610,7 @@ sub match_created_after ($$;@) {
sub match_creation_day ($$;@) {
my $d=shift;
if ($d !~ /^\d+$/) {
- return IkiWiki::FailReason->new('invalid day');
+ return IkiWiki::ErrorReason->new("invalid day $d");
}
if ((localtime($IkiWiki::pagectime{shift()}))[3] == shift) {
return IkiWiki::SuccessReason->new('creation_day matched');
@@ -2623,7 +2623,7 @@ sub match_creation_day ($$;@) {
sub match_creation_month ($$;@) {
my $m=shift;
if ($m !~ /^\d+$/) {
- return IkiWiki::FailReason->new('invalid month');
+ return IkiWiki::ErrorReason->new("invalid month $m");
}
if ((localtime($IkiWiki::pagectime{shift()}))[4] + 1 == shift) {
return IkiWiki::SuccessReason->new('creation_month matched');
@@ -2636,7 +2636,7 @@ sub match_creation_month ($$;@) {
sub match_creation_year ($$;@) {
my $y=shift;
if ($y !~ /^\d+$/) {
- return IkiWiki::FailReason->new('invalid year');
+ return IkiWiki::ErrorReason->new("invalid year $y");
}
if ((localtime($IkiWiki::pagectime{shift()}))[5] + 1900 == $y) {
return IkiWiki::SuccessReason->new('creation_year matched');