[freeside-commits] branch FREESIDE_3_BRANCH updated. 53587d38364bb25653f7df08b2cf1a7468d43c1f

Ivan ivan at 420.am
Fri May 10 14:26:07 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  53587d38364bb25653f7df08b2cf1a7468d43c1f (commit)
      from  2272361a3302113bb43cbf4581e7187db25f3a58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 53587d38364bb25653f7df08b2cf1a7468d43c1f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri May 10 14:26:06 2013 -0700

    add -s flag to skip CDR files that error out, RT#20763

diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index bdf3bcf..87947f0 100644
--- 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
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Record.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list