From 2fced917a5aff2019701c5f4986659f79b31ab9e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 14 Oct 2009 16:59:21 -0400 Subject: [PATCH] sparkline: show error if php does not run --- IkiWiki/Plugin/sparkline.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.32.0.93.g670b81a890