diff options
author | ivan <ivan> | 2012-01-05 20:06:59 +0000 |
---|---|---|
committer | ivan <ivan> | 2012-01-05 20:06:59 +0000 |
commit | 68afc2494de171f7d193a1bd29f37b32996d0326 (patch) | |
tree | 27f6f0f06225b3bcf7871d4ea57dccc580c32827 /FS | |
parent | 0bfdd767de9c8758c5997beb72bfd8c22db25ab4 (diff) |
check error status of final $cdr->set_status just in case, RT#15535
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_pkg/voip_cdr.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |