Ignore:
Timestamp:
2013-08-22T18:41:08+12:00 (11 years ago)
Author:
ak19
Message:

Better error checking after system commands in mgpbuilder too. Could not use bitwise flags for this, since mg needs to generate all the indexes, stemming, casefolding and casefolding and stemming, even when one of them (such as casefolding) is not turned on. And if ever one of them doesn't work, the original comment seemed to indicate that then none of it will work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/mgppbuilder.pm

    r28119 r28121  
    573573    # check that it worked - if not, don't carry on
    574574    if ($weights_status !=0) {
    575         print $outhandle "mgppbuilder::build_index - No Index: couldn't create weights file, error calling mggp_weights_build.\n";
     575        print $outhandle "mgppbuilder::build_index - No Index: couldn't create weights file, error calling mgpp_weights_build.\n";
    576576        print STDERR "<Warning name='NoIndex'/>\n</Stage>\n" if $self->{'gli'};
    577577        $self->{'notbuilt'}->{$index}=1;
     
    589589    # check that it worked - if not, don't carry on
    590590    if ($invdict_status !=0) {
    591         print $outhandle "mgppbuilder::build_index - No Index: couldn't create on-disk stemmed dictionary, error calling mggp_invf_dict.\n";
     591        print $outhandle "mgppbuilder::build_index - No Index: couldn't create on-disk stemmed dictionary, error calling mgpp_invf_dict.\n";
    592592        print STDERR "<Warning name='NoIndex'/>\n</Stage>\n" if $self->{'gli'};
    593593        $self->{'notbuilt'}->{$index}=1;
Note: See TracChangeset for help on using the changeset viewer.