diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-07-12 13:21:55 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-07-12 16:19:38 -0400 |
commit | fd5d458eda666a60ec0cdf35e5cbdff438b4ed76 (patch) | |
tree | 64c7d459e06c2a86829a1d4fe616942c0f75bd3c | |
parent | 109a0744cf4da3acec4c8638adc9f5771a56ed45 (diff) |
RT# 76307 - changed from returning an error to die on error.
-rw-r--r-- | FS/FS/part_event/Action/addtag.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/FS/FS/part_event/Action/addtag.pm b/FS/FS/part_event/Action/addtag.pm index 947f0c37d..c4e9820b7 100644 --- a/FS/FS/part_event/Action/addtag.pm +++ b/FS/FS/part_event/Action/addtag.pm @@ -42,9 +42,7 @@ sub do_action { my $cust_tag = new FS::cust_tag { 'tagnum' => $tagnum, 'custnum' => $object->custnum, }; my $error = $cust_tag->insert; - if ( $error ) { - return $error; - } + die $error if $error; } } ''; |