Changeset 22853


Ignore:
Timestamp:
2010-09-06T11:48:49+12:00 (14 years ago)
Author:
kjdon
Message:

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

File:
1 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.