IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28046 for trunk


Ignore:
Timestamp:
May 20, 2010, 10:02:11 AM (16 years ago)
Author:
bills
Message:

Add ERROR_STR to the results file. It will contain readable error
PSTAMP_SUCESS PSTAMP_GONE etc

Location:
trunk/pstamp/scripts
Files:
2 edited

Legend:

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

    r27896 r28046  
    176176        my $exp_id = $job->{exp_id};
    177177
     178        my $error_string = get_error_string($fault);
     179
    178180        if (($fault eq $PSTAMP_DUP_REQUEST) and ($req_name eq "NULL")) {
    179181            # this request had a duplicate request name yet the parser didn't give
     
    220222
    221223                    # add line to the table definition file
    222                     print $tdf "$rownum|$fault|$img_name|$job_id|";
     224                    print $tdf "$rownum|$fault|$error_string|$img_name|$job_id|";
    223225
    224226                    # ra_deg and dec_deg are the coordinates of center of the stamp
     
    241243            } else {
    242244                print STDERR "no reglist file for job $job_id\n" if $verbose;
    243                 print $tdf "$rownum|$fault|0|$job_id|";
     245                print $tdf "$rownum|$fault|$error_string|0|$job_id|";
    244246                print $tdf "0|0|";       # center of (non-existent) stamp
    245247                print $tdf "$exp_info|";
  • trunk/pstamp/scripts/pstamp_results_file.pl

    r26289 r28046  
    5454        # error code from processing this image
    5555        { name => 'ERROR_CODE',type => 'V',  writetype => TULONG },
     56        # error string correspoding to ERROR_CODE
     57        { name => 'ERROR_STR',type => '16A', writetype => TSTRING },
    5658        # name of the postage stamp image
    5759        { name => 'IMG_NAME', type => '64A', writetype => TSTRING },
Note: See TracChangeset for help on using the changeset viewer.