die on error! -- Alex
[rrdtool.git] / examples / 4charts.pl.in
index 828595c..a11b944 100755 (executable)
@@ -117,7 +117,7 @@ RRDs::graph "$name-sample.png",
 ;
 
 if ($ERROR = RRDs::error) {
-  print "ERROR: $ERROR\n";
+  die "ERROR: $ERROR\n";
 };
 
 print "This script has created $name.png in the current directory\n";