From fd5d458eda666a60ec0cdf35e5cbdff438b4ed76 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 12 Jul 2017 13:21:55 -0400 Subject: [PATCH] RT# 76307 - changed from returning an error to die on error. --- FS/FS/part_event/Action/addtag.pm | 4 +--- 1 file changed, 1 insertion(+), 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; } } ''; -- 2.11.0