IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36016


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

Handle empty request file properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20130712/pstamp/scripts/pstampparse.pl

    r35940 r36016  
    210210    my $dtime_request_file = gettimeofday() - $start_request_file;
    211211    print "Time to read and parse request file: $dtime_request_file\n";
     212}
     213
     214if (!$rows) {
     215    # we got called so a valid pstamp request header was found so we can only assume
     216    # that the file is invalid
     217    print STDERR "Invalid request file\n";
     218    insertFakeJobForRow(undef, 0, $PSTAMP_INVALID_REQUEST);
     219    exit 0;
    212220}
    213221
Note: See TracChangeset for help on using the changeset viewer.