IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36017


Ignore:
Timestamp:
Aug 23, 2013, 1:10:54 PM (13 years ago)
Author:
bills
Message:

Handle request files without a table properly.
Fix typo in last commit.

File:
1 edited

Legend:

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

    r36011 r36017  
    212212}
    213213
     214if (!$rows) {
     215    # pstamp_job_run was invoked so the request file must have contained a valid header
     216    # We can only assume that the file is invalid or more likely empty. The print above will let the
     217    # log file know. Insert a faulted fake job and exit successfully.
     218    print STDERR "Invalid request file.\n";
     219    insertFakeJobForRow(undef, 0, $PSTAMP_INVALID_REQUEST);
     220    exit 0;
     221}
     222
     223
    214224my $nRows = scalar @$rows;
    215225print "\n$nRows rows read from request file\n";
     
    385395    }
    386396
    387     if (($req_type eq "byexp") and ($stage eq "stack" or $stage eq 'stack_summary') {
     397    if (($req_type eq "byexp") and ($stage eq "stack" or $stage eq 'stack_summary')) {
    388398        print STDERR "byexp not implemented for $stage stage. row: $rownum\n";
    389399        insertFakeJobForRow($row, 1, $PSTAMP_NOT_IMPLEMENTED);
Note: See TracChangeset for help on using the changeset viewer.