summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f6f2575)
Also improve error message when a pagespec fails to parse.
return eval 'sub { my $page=shift; '.$code.' }';
} #}}}
return eval 'sub { my $page=shift; '.$code.' }';
} #}}}
}
my $sub=pagespec_translate($spec);
}
my $sub=pagespec_translate($spec);
- return IkiWiki::FailReason->new('syntax error') if $@;
+ return IkiWiki::FailReason->new("syntax error in pagespec \"$spec\"") if $@;
return $sub->($page, @params);
} #}}}
return $sub->($page, @params);
} #}}}
* Perls older than 5.10 need to use the old method of decoding utf-8 in CGI
values. Neither method will work for all versions of perl, so check
version number at runtime.
* Perls older than 5.10 need to use the old method of decoding utf-8 in CGI
values. Neither method will work for all versions of perl, so check
version number at runtime.
+ * Avoid unsightly warning message when evaling broken pagespecs.
+ * Improve error message when a pagespec fails to parse.
-- Joey Hess <joeyh@debian.org> Tue, 13 May 2008 12:30:18 -0400
-- Joey Hess <joeyh@debian.org> Tue, 13 May 2008 12:30:18 -0400