X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fcacti.pm;h=b41fe9bc8e95eb20dff6c512863c8a525d287f8e;hp=eff6c5220981bec6de6fe39612e131f4964a69a0;hb=0b9c15a3add1d3715c3895171894ac6480d1dfc1;hpb=2bcf13f0f9da22f9afa134320943ea2bfc9c7dcb 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); }