summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-07-02 13:16:21 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-07-02 13:16:21 -0500
commit0b9c15a3add1d3715c3895171894ac6480d1dfc1 (patch)
tree61261daf546613cc7ffb1bc7bd26827e0cf26f56
parent2bcf13f0f9da22f9afa134320943ea2bfc9c7dcb (diff)
RT#18834: Cacti integration [added warning messages]
-rw-r--r--FS/FS/part_export/cacti.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_export/cacti.pm b/FS/FS/part_export/cacti.pm
index eff6c5220..b41fe9bc8 100644
--- a/FS/FS/part_export/cacti.pm
+++ b/FS/FS/part_export/cacti.pm
@@ -490,8 +490,12 @@ sub process_graphs {
$dbh->rollback if $oldAutoCommit;
die $error;
}
+ } else {
+ warn "File $thumbfile is too large, skipping";
}
unlink($thumbfile);
+ } else {
+ warn "File $thumbfile does not exist, skipping";
}
$job->update_statustext(49 + int($i / @graphs) * 50);
}