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

    r26899 r26982  
    4343        // Create the background model
    4444        if (!psphotModelBackgroundReadoutFileIndex(config, view, "PPSUB.OUTPUT", 0)) {
    45             psError(PS_ERR_UNKNOWN, false, "Unable to model background");
     45            psError(psErrorCodeLast(), false, "Unable to model background");
    4646            psFree(view);
    4747            return false;
     
    5050        modelRO = pmFPAfileThisReadout(config->files, view, "PSPHOT.BACKMDL");
    5151        if (!modelRO) {
    52             psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find background model");
     52            psError(psErrorCodeLast(), false, "Unable to find background model");
    5353            psFree(view);
    5454            return false;
Note: See TracChangeset for help on using the changeset viewer.