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/ppSubReadoutSubtract.c

    r24862 r26982  
    7171    pmFPA *outFPA = outFile->fpa;       // Output FPA
    7272    if (!pmConceptsCopyFPA(outFPA, inFPA, true, true)) {
    73         psError(PS_ERR_UNKNOWN, false, "Unable to copy concepts from input to output.");
     73        psError(PPSUB_ERR_CONFIG, false, "Unable to copy concepts from input to output.");
    7474        psFree(outRO);
    7575        psFree(view);
     
    8484    psFree(view);
    8585    if (!outHDU || !inHDU) {
    86         psError(PS_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");
     86        psError(PPSUB_ERR_PROG, true, "Unable to find HDU at FPA level to copy astrometry.");
    8787        return false;
    8888    }
    8989    if (!pmAstromReadWCS(outFPA, outChip, inHDU->header, 1.0)) {
    90         psError(PS_ERR_UNKNOWN, false, "Unable to read WCS astrometry from input FPA.");
     90        psError(psErrorCodeLast(), false, "Unable to read WCS astrometry from input FPA.");
    9191        return false;
    9292    }
    9393    if (!pmAstromWriteWCS(outHDU->header, outFPA, outChip, WCS_TOLERANCE)) {
    94         psError(PS_ERR_UNKNOWN, false, "Unable to write WCS astrometry to output FPA.");
     94        psError(psErrorCodeLast(), false, "Unable to write WCS astrometry to output FPA.");
    9595        return false;
    9696    }
Note: See TracChangeset for help on using the changeset viewer.