use error for two messages

master
Joey Hess 2008-11-05 01:38:36 -05:00
parent 4dc4c9586d
commit 42b4abee1d
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ sub preprocess_inline (@) { #{{{
@list=sort { $pagectime{$b} <=> $pagectime{$a} } @list; @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
} }
else { else {
return sprintf(gettext("unknown sort type %s"), $params{sort}); error sprintf(gettext("unknown sort type %s"), $params{sort});
} }
if (yesno($params{reverse})) { if (yesno($params{reverse})) {
@ -298,7 +298,7 @@ sub preprocess_inline (@) { #{{{
require HTML::Template; require HTML::Template;
my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1); my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
if (! @params) { if (! @params) {
return sprintf(gettext("nonexistant template %s"), $params{template}); error sprintf(gettext("nonexistant template %s"), $params{template});
} }
my $template=HTML::Template->new(@params) unless $raw; my $template=HTML::Template->new(@params) unless $raw;