Ignore:
Timestamp:
2005-04-07T15:01:06+12:00 (19 years ago)
Author:
mdewsnip
Message:

Plugins that return -1 from their read function now must output the ProcessingError tag (when in GLI mode) themselves, rather than having it done in plugin.pm. This is so a reason "r='...'" can be optionally included as to why the processing failed.

File:
1 edited

Legend:

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

    r9462 r9584  
    235235    # find all the files in the directory
    236236    if (!opendir (DIR, $dirname)) {
    237     print $outhandle "RecPlug: WARNING - couldn't read directory $dirname\n";
     237    if ($gli) {
     238        print STDERR "<ProcessingError n='$file' r='Could not read directory $dirname'>\n";
     239    }
     240    else {
     241        print $outhandle "RecPlug: WARNING - couldn't read directory $dirname\n";
     242    }
    238243    return -1; # error in processing
    239244    }
Note: See TracChangeset for help on using the changeset viewer.