diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-14 16:59:21 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-14 16:59:21 -0400 |
commit | 2fced917a5aff2019701c5f4986659f79b31ab9e (patch) | |
tree | ff3d6fd37ba3c5bc6637fc77da3f3dec69c20b42 | |
parent | 77b0454e0c69fa0a3e3855b5f25322ae26b37042 (diff) |
sparkline: show error if php does not run
-rw-r--r-- | IkiWiki/Plugin/sparkline.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/sparkline.pm b/IkiWiki/Plugin/sparkline.pm index c1f016ffd..fb4849492 100644 --- a/IkiWiki/Plugin/sparkline.pm +++ b/IkiWiki/Plugin/sparkline.pm @@ -149,7 +149,7 @@ sub preprocess (@) { waitpid $pid, 0; $SIG{PIPE}="DEFAULT"; - if ($sigpipe) { + if ($sigpipe || ! defined $png) { error gettext("failed to run php"); } |