aboutsummaryrefslogtreecommitdiffstats
path: root/bin/problem-creation-graph
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-10-23 13:53:07 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-10-23 13:53:07 +0100
commit239148e9ba1e55ce205f4ec134c0baab104b0208 (patch)
tree00c66b19ad7acc75ea299be82c339340231467e9 /bin/problem-creation-graph
parenta9eb6707b478f28b0d2e61cb264ddf56b3342015 (diff)
Add error checking to graph gnuplot running.
Diffstat (limited to 'bin/problem-creation-graph')
-rwxr-xr-xbin/problem-creation-graph2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/problem-creation-graph b/bin/problem-creation-graph
index 9fb4501a3..3e46777f4 100755
--- a/bin/problem-creation-graph
+++ b/bin/problem-creation-graph
@@ -113,6 +113,6 @@ $gp .= <<END;
"< awk 'BEGIN { n = 0 } { n += \$2; print \$1, \$2, n; }' $sources{unconfirmed}" using 1:3 axes x1y2 with lines lt 0 title "cumulative total number of problems"
END
-open(my $gnuplot, '|-', "GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot > $DIR/web/fms-live-creation$config{extension} 2> /dev/null");
+open(my $gnuplot, '|-', "GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot > $DIR/web/fms-live-creation$config{extension} 2> /dev/null") or die $!;
$gnuplot->print($gp);
close $gnuplot;