IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 2, 2006, 3:02:08 PM (20 years ago)
Author:
Paul Price
Message:

Applying RHL patch. Generally improves the error handling and traceback. pmConcepts.c and pmConceptsRead.c done by PAP (RHL did this also, but I had already done them). Resolved conflicts, except for pmFPAfile.c, which uses psAbort in some instances where RHL's patch had psError; leave this for Gene to decide.

File:
1 edited

Legend:

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

    r7278 r7311  
    3535    if (psRegionIsBad(*trimsec)) {
    3636        psString regionString = psRegionToString(*trimsec);
    37         psError(PS_ERR_IO, true, "Invalid trim section: %s\n", regionString);
     37        psError(PS_ERR_UNKNOWN, true, "Invalid trim section: %s\n", regionString);
    3838        psFree(regionString);
    3939        psFree(readout);
     
    319319    }
    320320    if (!hdu->images && !pmHDURead(hdu, fits)) {
    321         psError(PS_ERR_IO, false, "Unable to read HDU for cell.\n");
    322         return false;
    323     }
    324 
    325     pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL);
     321        psError(PS_ERR_UNKNOWN, false, "Unable to read HDU for cell.\n");
     322        return false;
     323    }
     324
     325    if (!pmConceptsReadCell(cell, PM_CONCEPT_SOURCE_HEADER, false, NULL)) {
     326        psError(PS_ERR_UNKNOWN, false, "Failed to read concepts for cell");
     327        return false;
     328    }
    326329
    327330    // Having read the cell, we now have to cut it up
     
    397400        pmConceptsReadFPA(fpa, PM_CONCEPT_SOURCE_HEADER, NULL);
    398401    } else {
    399         psLogMsg(__func__, PS_LOG_WARN, "Unable to read any chips in FPA.\n");
     402        psError(PS_ERR_UNKNOWN, false, "Unable to read any chips in FPA");
    400403    }
    401404
Note: See TracChangeset for help on using the changeset viewer.