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

    r25374 r26982  
    3535    int num = psMetadataLookupS32(&mdok, recipe, "RENORM.NUM");
    3636    if (!mdok) {
    37         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "RENORM.NUM is not set in the recipe");
     37        psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.NUM is not set in the recipe");
    3838        return false;
    3939    }
    4040    float minValid = psMetadataLookupF32(&mdok, recipe, "RENORM.MIN");
    4141    if (!mdok) {
    42         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "RENORM.MIN is not set in the recipe");
     42        psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.MIN is not set in the recipe");
    4343        return false;
    4444    }
    4545    float maxValid = psMetadataLookupF32(&mdok, recipe, "RENORM.MAX");
    4646    if (!mdok) {
    47         psError(PS_ERR_BAD_PARAMETER_VALUE, true, "RENORM.MAX is not set in the recipe");
     47        psError(PPSUB_ERR_ARGUMENTS, true, "RENORM.MAX is not set in the recipe");
    4848        return false;
    4949    }
Note: See TracChangeset for help on using the changeset viewer.