IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 24, 2007, 11:41:08 AM (19 years ago)
Author:
eugene
Message:

updating error handling to distinguish data errors from fatal errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageMedian.c

    r11200 r11263  
    9999            pmFPAfileCopyStructureView (file->fpa, inFPA, DX, DY, view);
    100100            model = pmFPAviewThisReadout (view, file->fpa);
    101             if (nx != model->image->numCols) psAbort ("psphot", "inconsistent size");
    102             if (ny != model->image->numRows) psAbort ("psphot", "inconsistent size");
     101            if ((nx != model->image->numCols) || (ny != model->image->numRows)) {
     102                psError (PSPHOT_ERR_PROG, true, "inconsistent sizes for model dimensions");
     103                return false;
     104            }
    103105        }
    104106    }
     
    230232            pmFPAfileCopyStructureView (file->fpa, inFPA, 1, 1, view);
    231233            background = pmFPAviewThisReadout (view, file->fpa);
    232             if (Nx != background->image->numCols) psAbort ("psphot", "inconsistent size");
    233             if (Ny != background->image->numRows) psAbort ("psphot", "inconsistent size");
     234            if ((Nx != background->image->numCols) || (Ny != background->image->numRows)) {
     235                psError (PSPHOT_ERR_PROG, true, "inconsistent sizes for background dimensions");
     236                return false;
     237            }
    234238        }
    235239    } else {
Note: See TracChangeset for help on using the changeset viewer.