aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-08-26 13:24:51 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-08-26 13:24:51 -0400
commit4e70f2f0d20bbfc800aafb1b78cc6a41f4617d32 (patch)
tree0580c3c19cba8868d093ae927a673a27f6f09f2a /IkiWiki/Plugin
parent2736fc5ba975a92311649b5951c677223732d531 (diff)
downloadikiwiki-4e70f2f0d20bbfc800aafb1b78cc6a41f4617d32.tar
ikiwiki-4e70f2f0d20bbfc800aafb1b78cc6a41f4617d32.tar.gz
htmltidy: Print a warning message if tidy fails. Closes: #543722
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/htmltidy.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/htmltidy.pm b/IkiWiki/Plugin/htmltidy.pm
index 6f3379ef4..fc0d3b1d6 100644
--- a/IkiWiki/Plugin/htmltidy.pm
+++ b/IkiWiki/Plugin/htmltidy.pm
@@ -46,7 +46,10 @@ sub sanitize (@) {
waitpid $pid, 0;
$SIG{PIPE}="DEFAULT";
- return "" if $sigpipe || ! defined $ret;
+ if ($sigpipe || ! defined $ret) {
+ print STDERR gettext("warning: tidy failed")."\n";
+ return "";
+ }
return $ret;
}