From: ivan Date: Thu, 5 Jan 2012 20:06:59 +0000 (+0000) Subject: check error status of final $cdr->set_status just in case, RT#15535 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=68afc2494de171f7d193a1bd29f37b32996d0326;p=freeside.git check error status of final $cdr->set_status just in case, RT#15535 --- diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index 31a92187b..e74ed0ee5 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -412,7 +412,8 @@ sub calc_usage { # at this point we officially Do Not Care about the rating method $charges += $cdr->rated_price; $formatter->append($cdr); - $cdr->set_status('done'); + my $error = $cdr->set_status('done'); + die $error if $error; } }