fix handling of error conditions in rrd_tool.c ... errno is not for detection, only...
[rrdtool.git] / examples / bigtops.pl.in
index 0f5d98c..997386c 100755 (executable)
@@ -42,7 +42,7 @@ RRDs::graph "$name.png",
 ;
 
 if ($ERROR = RRDs::error) {
-  print "ERROR: $ERROR\n";
+  die "ERROR: $ERROR\n";
 };