IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42047


Ignore:
Timestamp:
Feb 17, 2022, 1:57:29 PM (4 years ago)
Author:
ippitc
Message:

merge fixed wrong command string returned when psphotForced fails (MEH, IPP-946)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20170121/pstamp/scripts/dquery_job_run.pl

    r40825 r42047  
    121121my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    122122    run(command => $command, verbose => $verbose);
     123## MEH need to adjust error_code to rc
    123124unless ($success) {
    124     my_die("Unable to perform $command. Error_code: $error_code",
     125    my $rc = $error_code >> 8;
     126    my_die("Unable to perform $command. Error_code: $error_code $rc",
    125127           $params->{QUERY_ID},$fpa_id,$params->{'MJD-OBS'},
    126128           $params->{FILTER},$params->{OBSCODE},$params->{STAGE},
    127            $error_code);
     129           $rc);
    128130}
    129131my @response = split /\n/, (join "", @$stdout_buf);
     
    164166    # $params->{PROC_ERROR} = $PSTAMP_SYSTEM_ERROR;
    165167    my $rc = $error_code >> 8;
    166     my_die("$command failed: $error_code $rc",
     168    my_die("$psphot_cmd failed: $error_code $rc",
    167169           $params->{QUERY_ID},$fpa_id,$params->{'MJD-OBS'},
    168170           $params->{FILTER},$params->{OBSCODE},$params->{STAGE},
     
    387389    $exit_code = $PS_EXIT_PROG_ERROR unless defined $exit_code;
    388390
    389     carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE");
     391    #carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE");
     392    carp("$message : $QUERY_ID $FPA_ID $MJD_OBS $FILTER $OBSCODE $STAGE $exit_code");
     393
    390394    exit($exit_code);
    391395
Note: See TracChangeset for help on using the changeset viewer.