aboutsummaryrefslogtreecommitdiffstats
path: root/bin/problems-filed-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/problems-filed-graph
parenta9eb6707b478f28b0d2e61cb264ddf56b3342015 (diff)
Add error checking to graph gnuplot running.
Diffstat (limited to 'bin/problems-filed-graph')
-rwxr-xr-xbin/problems-filed-graph2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/problems-filed-graph b/bin/problems-filed-graph
index cb8851b7f..a930e4346 100755
--- a/bin/problems-filed-graph
+++ b/bin/problems-filed-graph
@@ -62,6 +62,6 @@ my $gp = <<END;
plot "$source" using 1:2 with lines axes x1y2 lt 3 title "FixMyStreet problem reports"
END
-open(my $gnuplot, '|-', "GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot > $DIR/web/fms-live-line$config{extension} 2> /dev/null");
+open(my $gnuplot, '|-', "GDFONTPATH=/usr/share/fonts/truetype/ttf-bitstream-vera gnuplot > $DIR/web/fms-live-line$config{extension} 2> /dev/null") or die $!;
$gnuplot->print($gp);
close $gnuplot;