Changeset 22853

Show
Ignore:
Timestamp:
06.09.2010 11:48:49 (9 years ago)
Author:
kjdon
Message:

print parse errors to failhandle and GLI xml as well as to outhandle

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/MetadataXMLPlugin.pm

    r22412 r22853  
    250250    if ($@) { 
    251251    my $plugin_name = ref ($self); 
     252    my $failhandle = $self->{'failhandle'}; 
    252253    print $outhandle "$plugin_name failed to process $file ($@)\n"; 
    253      
     254    print $failhandle "$plugin_name failed to process $file ($@)\n"; 
     255    print STDERR "<ProcessingError n='$file'>\n" if ($gli); 
    254256    return -1; #error 
    255257    }