IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 25, 2010, 4:26:50 PM (16 years ago)
Author:
Paul Price
Message:

Reworking error codes to get consistent exit codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpTransformReadout.c

    r26896 r27096  
    8989
    9090    if (!pmReadoutMaskNonfinite(input, pmConfigMaskGet("SAT", config))) {
    91         psError(PS_ERR_UNKNOWN, false, "Unable to mask non-finite pixels in input.");
     91        psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels in input.");
    9292        return false;
    9393    }
     
    129129            psArrayAdd(job->args, 1, args);
    130130            if (!psThreadJobAddPending(job)) {
    131                 psError(PS_ERR_UNKNOWN, false, "Unable to warp image.");
     131                psError(psErrorCodeLast(), false, "Unable to warp image.");
    132132                return false;
    133133            }
     
    140140    // wait here for the threaded jobs to finish
    141141    if (!psThreadPoolWait (false)) {
    142         psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
     142        psError(psErrorCodeLast(), false, "Unable to interpolate image.");
    143143        return false;
    144144    }
     
    185185    if (goodPixels > 0) {
    186186        if (!pswarpTransformSources(output, input, config)) {
    187             psError(PS_ERR_UNKNOWN, false, "Unable to interpolate image.");
     187            psError(psErrorCodeLast(), false, "Unable to interpolate image.");
    188188            return false;
    189189        }
Note: See TracChangeset for help on using the changeset viewer.