Code

die on error! -- Alex
[rrdtool.git] / examples / stripes.pl.in
index 5187a56cdf0130930162a6edc1ae5436c2579f4e..362f4992e02743559107dda00b912721c6e982bc 100755 (executable)
@@ -38,7 +38,7 @@ RRDs::graph "stripes.png",
   "COMMENT:alpha=TIME,1200,%,600,LT,a,UNKN,IF",
   "COMMENT:beta=TIME,1200,%,600,GE,b,UNKN,IF\\j";
 if ($ERROR = RRDs::error) {
-  print "ERROR: $ERROR\n";
+  die "ERROR: $ERROR\n";
 };