IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9321


Ignore:
Timestamp:
Oct 5, 2006, 3:08:28 PM (20 years ago)
Author:
Paul Price
Message:

Fixing error propagation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPARead.c

    r8815 r9321  
    339339
    340340    if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, true, NULL)) {
    341         psError(PS_ERR_UNKNOWN, false, "Failed to read concepts for cell");
    342         return false;
     341        //psError(PS_ERR_UNKNOWN, false, "Failed to read concepts for cell");
     342        //return false;
     343        psWarning("Difficulty reading concepts for cell; attempting to proceed.");
    343344    }
    344345
     
    346347    psRegion *trimsec = psMetadataLookupPtr(NULL, cell->concepts, "CELL.TRIMSEC");
    347348    psList *biassecs = psMetadataLookupPtr(NULL, cell->concepts, "CELL.BIASSEC");
     349    if (psRegionIsNaN(*trimsec)) {
     350        psError(PS_ERR_IO, false, "CELL.TRIMSEC is not set --- can't read cell.\n");
     351        return false;
     352    }
    348353
    349354    // Iterate over each of the image planes
Note: See TracChangeset for help on using the changeset viewer.