]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
use error for two messages
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 5 Nov 2008 06:38:36 +0000 (01:38 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 5 Nov 2008 06:38:36 +0000 (01:38 -0500)
IkiWiki/Plugin/inline.pm

index 1b1ca2ce22a8f2562a5977fda88cb7c41b2ea57f..7fe5a4dcf5c2f0543bef836067820133b2014405 100644 (file)
@@ -201,7 +201,7 @@ sub preprocess_inline (@) { #{{{
                @list=sort { $pagectime{$b} <=> $pagectime{$a} } @list;
        }
        else {
-               return sprintf(gettext("unknown sort type %s"), $params{sort});
+               error sprintf(gettext("unknown sort type %s"), $params{sort});
        }
 
        if (yesno($params{reverse})) {
@@ -298,7 +298,7 @@ sub preprocess_inline (@) { #{{{
                require HTML::Template;
                my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
                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;