summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pkg
diff options
context:
space:
mode:
authorivan <ivan>2011-01-21 09:40:40 +0000
committerivan <ivan>2011-01-21 09:40:40 +0000
commitec70b9131ae5df9c58b75e8d6db75e5fddb6362a (patch)
tree2f4670a85aa282cbd3ffc58b23bf97979997d5de /FS/FS/cust_pkg
parent0ba11069f2cc969e5e873db82d2b108e64f50c6a (diff)
questionable auto-domaining of username@domain usernames on package import, RT#9117
Diffstat (limited to 'FS/FS/cust_pkg')
-rw-r--r--FS/FS/cust_pkg/Import.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/cust_pkg/Import.pm b/FS/FS/cust_pkg/Import.pm
index e113d17..9c93677 100644
--- a/FS/FS/cust_pkg/Import.pm
+++ b/FS/FS/cust_pkg/Import.pm
@@ -138,14 +138,14 @@ my %import_options = (
'domain' => $domain, };
unless ( $svc_domain->svcnum ) {
my $error = $svc_domain->insert;
- return $error if $error;
+ return "error auto-inserting domain: $error" if $error;
}
$svc->username($username);
$svc->domsvc($svc_domain->svcnum);
}
my $error = $svc->insert;
- return $error if $error;
+ return "error inserting service: $error" if $error;
}
}