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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmStackReject.c

    r26893 r27004  
    158158        if (!pmSubtractionConvolve(NULL, convRO, NULL, inRO, NULL, stride, 0, 0, 1.0, 0.0, 0.0,
    159159                                   region, kernels, false, true)) {
    160             psError(PS_ERR_UNKNOWN, false, "Unable to convolve mask image in region %d.", i);
     160            psError(psErrorCodeLast(), false, "Unable to convolve mask image in region %d.", i);
    161161            psFree(convRO);
    162162            psFree(inRO);
     
    170170        psImage *kernel = pmSubtractionKernelImage(kernels, 0.5, 0.5, false);
    171171        if (!kernel) {
    172             psError(PS_ERR_UNKNOWN, false, "Unable to generate kernel image.");
     172            psError(psErrorCodeLast(), false, "Unable to generate kernel image.");
    173173            psFree(convRO);
    174174            psFree(inRO);
     
    283283                } else if (!stackRejectGrow(target, source, kernels, numCols, numRows,
    284284                                            i, xSubMax, j, ySubMax, poorFrac)) {
    285                     psError(PS_ERR_UNKNOWN, false, "Unable to grow bad pixels.");
     285                    psError(psErrorCodeLast(), false, "Unable to grow bad pixels.");
    286286                    psFree(source);
    287287                    psFree(target);
     
    293293
    294294    if (!psThreadPoolWait(false)) {
    295         psError(PS_ERR_UNKNOWN, false, "Unable to grow bad pixels.");
     295        psError(psErrorCodeLast(), false, "Unable to grow bad pixels.");
    296296        psFree(source);
    297297        psFree(target);
Note: See TracChangeset for help on using the changeset viewer.