]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/template.pm
calendar: Display the popup mouseover when there is only 1 page for a given day,...
[git.ikiwiki.info.git] / IkiWiki / Plugin / template.pm
index db26bfe315a254ddc8bdafef07abf83c4a819deb..3df06e652eeee285d51690b9d2178d6e0fb2b8ca 100644 (file)
@@ -41,12 +41,9 @@ sub preprocess (@) {
                        blind_cache => 1);
        };
        if ($@) {
                        blind_cache => 1);
        };
        if ($@) {
-               error gettext("failed to process template:")." $@";
-       }
-       if (! $template) {
-               error sprintf(gettext("%s not found"),
+               error sprintf(gettext("failed to process template %s"),
                        htmllink($params{page}, $params{destpage},
                        htmllink($params{page}, $params{destpage},
-                               "/templates/$params{id}"))
+                               "/templates/$params{id}"))." $@";
        }
 
        $params{basename}=IkiWiki::basename($params{page});
        }
 
        $params{basename}=IkiWiki::basename($params{page});