$new++;
return;
}
- die "too many matches found!" if scalar(@exists) > 1;
+ return "too many matches found!" if scalar(@exists) > 1;
my $exists = $exists[0];
if ( $exists->freesidestatus ) {
} else {
$rep++;
my $error = $exists->delete;
- die $error if $error;
+ return $error if $error;
}
+ return '';
+
};
my $error = FS::cdr::batch_import( {