do something useful (log) when the eval block horks
authorShawn Boyette <sboyette@esilibrary.com>
Thu, 11 Sep 2008 19:02:29 +0000 (19:02 +0000)
committerShawn Boyette <sboyette@esilibrary.com>
Thu, 11 Sep 2008 19:02:29 +0000 (19:02 +0000)
fingerprinter

index ee7c869..9c99ef1 100755 (executable)
@@ -30,6 +30,8 @@ for my $file (@ARGV) {
     $batch->warnings_off();
 
     while ( eval { $record = $batch->next } ) {
+        if ($@)
+          { print XF "MARC::Batch error $@"; next }
         my $marc = undef;
         $count++; progress_ticker();
         unless ( defined $record )