IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27260 for trunk/pstamp


Ignore:
Timestamp:
Mar 12, 2010, 8:54:56 AM (16 years ago)
Author:
bills
Message:

handle case where request file has no rows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstampparse.pl

    r27238 r27260  
    151151        print STDERR @$stderr_buf;
    152152    }
    153     my $table =  $mdcParser->parse(join "", @$stdout_buf) or
    154         my_die("Unable to parse metdata config doc", $PS_EXIT_UNKNOWN_ERROR);
    155 
    156     $rows = parse_md_list($table);
     153    if (@$stdout_buf) {
     154        my $table =  $mdcParser->parse(join "", @$stdout_buf) or
     155            my_die("Unable to parse metdata config doc", $PS_EXIT_UNKNOWN_ERROR);
     156        $rows = parse_md_list($table);
     157    }
     158
    157159}
    158160
     
    305307}
    306308
    307 if (($mode eq "queue_jobs") and ($num_jobs eq 0)) {
     309if (($mode eq "queue_job") and ($num_jobs eq 0)) {
    308310    print STDERR "no jobs created for $req_name\n" if $verbose;
    309     insertFakeJobForRow(undef, 0, $PSTAMP_UNKNOWN_ERROR);
     311    insertFakeJobForRow(undef, 0, $PSTAMP_INVALID_REQUEST);
    310312}
    311313
Note: See TracChangeset for help on using the changeset viewer.