Changeset 9586


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

Added a ProcessingError message so the GLI knows when a file failed to be processed due to containing no text.

File:
1 edited

Legend:

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

    r9584 r9586  
    720720    if (!length ($text)) {
    721721    my $plugin_name = ref ($self);
    722     gsprintf($outhandle, "$plugin_name: {BasPlug.file_has_no_text}\n", $filename) if $self->{'verbosity'};
     722    if ($gli) {
     723        print STDERR "<ProcessingError n='$file' r='File contains no text'>\n";
     724    }
     725    else {
     726        gsprintf($outhandle, "$plugin_name: {BasPlug.file_has_no_text}\n", $filename) if $self->{'verbosity'};
     727    }
    723728
    724729    my $failhandle = $self->{'failhandle'};
Note: See TracChangeset for help on using the changeset viewer.