From: Christopher Burger Date: Wed, 12 Jul 2017 17:21:55 +0000 (-0400) Subject: RT# 76307 - changed from returning an error to die on error. X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=fd5d458eda666a60ec0cdf35e5cbdff438b4ed76 RT# 76307 - changed from returning an error to die on error. --- 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; } } '';