IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 17, 2010, 5:36:13 PM (16 years ago)
Author:
Paul Price
Message:

Being better about errors and their mapping to exit codes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadoutInverse.c

    r24255 r26982  
    3434    pmHDU *invHDU = invFPA->hdu;          // Inverse HDU
    3535    if (!pmAstromWriteWCS(invHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
    36         psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
     36        psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to PPSUB.INVERSE.");
    3737        return false;
    3838    }
    3939    // Read from newly written astrometry so that it exists in the "inverse" FPA (for sources)
    4040    if (!pmAstromReadWCS(invFPA, invChip, invHDU->header, 1.0)) {
    41         psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry.");
     41        psError(psErrorCodeLast(), false, "Unable to read WCS astrometry.");
    4242        return false;
    4343    }
Note: See TracChangeset for help on using the changeset viewer.