IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2006, 4:49:48 PM (20 years ago)
Author:
Paul Price
Message:

Fixing up return values: don't return false unless there's a real error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsRead.c

    r7922 r7923  
    181181    pmHDU *hdu = pmHDUGetLowest(fpa, chip, cell); // The HDU at the lowest level
    182182    if (!hdu) {
    183         psError(PS_ERR_UNKNOWN, true, "Can't find HDU for fpa, chip or cell");
    184         return false;
     183        // We read the defaults for all the HDUs we could find
     184        return true;
    185185    }
    186186    psMetadata *cameraFormat = hdu->format; // The camera format
     
    351351    pmHDU *hdu = pmHDUGetLowest(fpa, chip, cell); // The HDU at the lowest level
    352352    if (!hdu) {
    353         return false;
     353        // We read the database for all the HDUs we could find
     354        return true;
    354355    }
    355356    psMetadata *cameraFormat = hdu->format; // The camera format
    356357    bool mdok = true;                   // Status of MD lookup
    357     psMetadata *dbSpec = psMetadataLookupMD(&mdok, cameraFormat, "DATABSE"); // The DATABASE spec
     358    psMetadata *dbSpec = psMetadataLookupMD(&mdok, cameraFormat, "DATABASE"); // The DATABASE spec
    358359    if (!mdok || !dbSpec) {
     360        psError(PS_ERR_IO, true, "Unable to find DATABASE in camera configuration.\n");
    359361        return false;
    360362    }
Note: See TracChangeset for help on using the changeset viewer.