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

    r26013 r27096  
    2828    // this function sets the required single-image mask bits
    2929    if (!pmConfigMaskSetBits (&maskIn, &markIn, config)) {
    30         psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
     30        psError (psErrorCodeLast(), false, "Unable to define the mask bit values");
    3131        return false;
    3232    }
     
    6464    }
    6565    if (!markOut) {
    66         psError (PS_ERR_UNKNOWN, true, "Unable to define the MARK bit mask: all bits taken!");
     66        psError(PSWARP_ERR_CONFIG, true, "Unable to define the MARK bit mask: all bits taken!");
    6767        return false;
    6868    }
     
    7171    psMetadata *warpRecipe = psMetadataLookupPtr (NULL, config->recipes, PSWARP_RECIPE);
    7272    if (!warpRecipe) {
    73         psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);
     73        psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSWARP_RECIPE);
    7474        return false;
    7575    }
     
    8585    psMetadata *psphotRecipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
    8686    if (!psphotRecipe) {
    87         psError(PSPHOT_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
     87        psError(PSWARP_ERR_CONFIG, false, "missing recipe %s", PSPHOT_RECIPE);
    8888        return false;
    8989    }
Note: See TracChangeset for help on using the changeset viewer.