RT# 76307 - changed from returning an error to die on error.
authorChristopher Burger <burgerc@freeside.biz>
Wed, 12 Jul 2017 17:21:55 +0000 (13:21 -0400)
committerChristopher Burger <burgerc@freeside.biz>
Wed, 12 Jul 2017 17:21:55 +0000 (13:21 -0400)
FS/FS/part_event/Action/addtag.pm

index 947f0c3..c4e9820 100644 (file)
@@ -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;
     }
   }
   '';