IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 18, 2010, 6:42:01 PM (16 years ago)
Author:
Paul Price
Message:

Reworked ppStack to be better about error codes and their translation to exit codes.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src

    • Property svn:ignore
      •  

        old new  
        1010stamp-h1
        1111ppStackVersionDefinitions.h
         12ppStackErrorCodes.c
         13ppStackErrorCodes.h
  • trunk/ppStack/src/ppStackSetup.c

    r26898 r27004  
    4242        options->statsFile = fopen(resolved, "w");
    4343        if (!options->statsFile) {
    44             psError(PS_ERR_IO, true, "Unable to open statistics file %s for writing.\n", resolved);
     44            psError(PPSTACK_ERR_IO, true, "Unable to open statistics file %s for writing.\n", resolved);
    4545            psFree(resolved);
    4646            return false;
     
    5757    }
    5858    if (!tempDir) {
    59         psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find TEMP.DIR in site configuration");
     59        psError(PPSTACK_ERR_CONFIG, false, "Unable to find TEMP.DIR in site configuration");
    6060        return false;
    6161    }
     
    6565    const char *tempName = basename(outputName);
    6666    if (!tempName) {
    67         psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to construct basename for temporary files.");
     67        psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to construct basename for temporary files.");
    6868        psFree(outputName);
    6969        return false;
     
    7474    const char *tempVariance = psMetadataLookupStr(NULL, recipe, "TEMP.VARIANCE"); // Suffix for var maps
    7575    if (!tempImage || !tempMask || !tempVariance) {
    76         psError(PS_ERR_BAD_PARAMETER_VALUE, false,
     76        psError(PPSTACK_ERR_CONFIG, false,
    7777                "Unable to find TEMP.IMAGE, TEMP.MASK and TEMP.VARIANCE in recipe");
    7878        psFree(outputName);
     
    117117
    118118    if (!pmConfigMaskSetBits(NULL, NULL, config)) {
    119         psError(PS_ERR_UNKNOWN, false, "Unable to determine mask value.");
     119        psError(PPSTACK_ERR_CONFIG, false, "Unable to determine mask value.");
    120120        return false;
    121121    }
Note: See TracChangeset for help on using the changeset viewer.