diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-09 16:53:03 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-09 16:53:03 -0400 |
commit | 06709cdf314ed12da5e29658231636372c34da8f (patch) | |
tree | 86973171a2032d111b58b08b42452cdb68b9381f /IkiWiki/Plugin | |
parent | f39a3c15595442c76b2bfb5dac0d8e8d99923f64 (diff) |
improve error message if virus checker fails w/o output
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/attachment.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/attachment.pm b/IkiWiki/Plugin/attachment.pm index ef6d79a9c..01d0d2478 100644 --- a/IkiWiki/Plugin/attachment.pm +++ b/IkiWiki/Plugin/attachment.pm @@ -386,6 +386,9 @@ sub match_virusfree ($$;@) { #{{{ waitpid $pid, 0; $SIG{PIPE}="DEFAULT"; if ($sigpipe || $?) { + if (! length $reason) { + $reason="virus checker $IkiWiki::config{virus_checker}; failed with no output"; + } return IkiWiki::FailReason->new("file seems to contain a virus ($reason)"); } else { |