summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Action
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-07-12 13:21:55 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-07-12 13:25:26 -0400
commita0be186f867a0d0a7e8145e02c4a50173778df38 (patch)
tree4063710307eb42bd6f9de1e2d448017d6f492c29 /FS/FS/part_event/Action
parentcfc3556abb94b4b90b8b3cb551c379e08e804b41 (diff)
RT# 76307 - changed from returning an error to die on error.
Diffstat (limited to 'FS/FS/part_event/Action')
-rw-r--r--FS/FS/part_event/Action/addtag.pm4
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;
}
}
'';