projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aa7d058
)
add -s flag to skip CDR files that error out, RT#20763
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 May 2013 21:26:05 +0000
(14:26 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 10 May 2013 21:26:05 +0000
(14:26 -0700)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
15636af
..
3886c33
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-1697,7
+1697,7
@@
sub batch_import {
my $data = slurp($file);
my $asn_output = $parser->decode( $data )
- or
die
"No ". $asn_format->{'macro'}. " found\n";
+ or
return
"No ". $asn_format->{'macro'}. " found\n";
$asn_header_buffer = &{ $asn_format->{'header_buffer'} }( $asn_output );
@@
-1881,7
+1881,7
@@
sub batch_import {
return "Empty file!";
}
- $dbh->commit or die $dbh->errstr if $oldAutoCommit;
;
+ $dbh->commit or die $dbh->errstr if $oldAutoCommit;
''; #no error