diff --git a/examples/4charts.pl.in b/examples/4charts.pl.in
index 828595cf9e6057280de266d09025fd93caac6860..a11b944185db50684b70ed918863d793f0346072 100755 (executable)
--- a/examples/4charts.pl.in
+++ b/examples/4charts.pl.in
;
if ($ERROR = RRDs::error) {
- print "ERROR: $ERROR\n";
+ die "ERROR: $ERROR\n";
};
print "This script has created $name.png in the current directory\n";