IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2006, 12:56:40 PM (20 years ago)
Author:
rhl
Message:

Always call psError(..., true, ...) or psErrorClear() when detecting
a new error

File:
1 edited

Legend:

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

    r7319 r7411  
    334334    psMetadata *formats = psMetadataLookupMD(&mdok, cameraFormat, "FORMATS");
    335335    if (!mdok || !formats) {
    336         psError(PS_ERR_UNKNOWN, false, "Unable to find FORMATS in camera configuration.\n");
     336        psError(PS_ERR_UNKNOWN, true, "Unable to find FORMATS in camera configuration.\n");
    337337        return NULL;
    338338    }
    339339
    340340    psString timeFormat = psMetadataLookupStr(&mdok, formats, "CELL.TIME");
    341     if (!mdok || !timeFormat || !strlen(timeFormat)) {
    342         psError(PS_ERR_UNKNOWN, false, "Unable to find CELL.TIME in FORMATS.\n");
     341    if (!mdok || strlen(timeFormat) == 0) {
     342        psError(PS_ERR_UNKNOWN, true, "Unable to find CELL.TIME in FORMATS.\n");
    343343        return NULL;
    344344    }
     
    371371            usaTime = false;
    372372        } else {
    373             psLogMsg(__func__, PS_LOG_WARN, "Unrecognised FORMATS option for CELL.TIME: %s --- "
    374                      "ignored.\n", timeFormat);
     373            psError(PS_ERR_UNKNOWN, true, "Unrecognised FORMATS option for CELL.TIME: %s --- "
     374                    "ignored.\n", timeFormat);
    375375            psFree(timeFormatsIter);
    376376            psFree(timeFormats);
Note: See TracChangeset for help on using the changeset viewer.