From: Shawn Boyette Date: Thu, 11 Sep 2008 19:02:29 +0000 (+0000) Subject: do something useful (log) when the eval block horks X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=5b73b8b71641c55e829c0bdcd82cd7f03a88405f;hp=0c562ba3d3a21cdc5cf630feb18e915c664867db do something useful (log) when the eval block horks --- diff --git a/fingerprinter b/fingerprinter index ee7c869..9c99ef1 100755 --- a/fingerprinter +++ b/fingerprinter @@ -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 )