Changeset 3116


Ignore:
Timestamp:
2002-05-16T14:44:45+12:00 (21 years ago)
Author:
sjboddie
Message:

RecPlug will now die with an error if it finds a metadata.xml file that is
not well formed (it used to simply print a warning and continue). This
seems safer since the old behaviour could cause confusion. That is, it
tended to process part of a metadata.xml file then barf (e.g. if it found
a non-utf8 character), then continue on to produce unexpected results where
some documents contained the expected metadata and others didn't.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/RecPlug.pm

    r3108 r3116  
    313313    };
    314314    if ($@) {
    315     my $outhandle = $self->{'outhandle'};
    316     print $outhandle "RecPlug: Warning: Ignoring $filename because it is not a well formed metadata.xml file\n";
    317     return;
     315    die "RecPlug: ERROR $filename is not a well formed metadata.xml file ($@)\n";
    318316    }
    319317}
Note: See TracChangeset for help on using the changeset viewer.