IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 7, 2007, 1:58:17 PM (19 years ago)
Author:
jhoblitt
Message:

update psAbort() API

File:
1 edited

Legend:

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

    r11475 r11687  
    768768    // a camera config is needed (as source of file rule)
    769769    if (config->cameraName == NULL) {
    770         psAbort ("pmFPAfileDefine", "camera defined but not cameraName!");
     770        psAbort("camera defined but not cameraName!");
    771771    }
    772772
     
    807807    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, "PPIMAGE");
    808808    if (!status)
    809         psAbort ("psModules", "PPIMAGE recipe not found");
     809        psAbort("PPIMAGE recipe not found");
    810810    psMetadata *detConstraints = psMetadataLookupPtr (&status, recipe, "DETREND.CONSTRAINTS");
    811811    if (!status)
    812         psAbort ("psModules", "DETREND.CONSTRAINTS not found");
     812        psAbort("DETREND.CONSTRAINTS not found");
    813813    // XXX allow this and just skip?
    814814
     
    816816    psMetadata *constraints = psMetadataLookupPtr (&status, detConstraints, typeName);
    817817    if (!status) {
    818         psAbort ("psModules", "DETREND.CONSTRAINTS for type %s not found", typeName);
     818        psAbort("DETREND.CONSTRAINTS for type %s not found", typeName);
    819819    }
    820820    psFree(typeName);
     
    825825    while ((item = psMetadataGetAndIncrement (iter)) != NULL) {
    826826        if (item->type != PS_DATA_STRING) {
    827             psAbort ("psModules", "invalid type for DETREND.CONSTRAINT element");
     827            psAbort("invalid type for DETREND.CONSTRAINT element");
    828828        }
    829829        char *option  = item->name;     // item->name must correspond to a valid detselect option
     
    833833            options->filter = psMetadataLookupPtr (&status, input->concepts, concept);
    834834            if (!status)
    835                 psAbort ("psModules", "failed to find filter (concept %s)", concept);
     835                psAbort("failed to find filter (concept %s)", concept);
    836836
    837837        }
     
    839839            options->exptime = psMetadataLookupF32 (&status, input->concepts, concept);
    840840            if (!status)
    841                 psAbort ("psModules", "exptime not found (concept %s)", concept);
     841                psAbort("exptime not found (concept %s)", concept);
    842842        }
    843843        if (!strcasecmp (option, "airmass")) {
    844844            options->airmass = psMetadataLookupF32 (&status, input->concepts, concept);
    845845            if (!status)
    846                 psAbort ("psModules", "airmass not found (concept %s)", concept);
     846                psAbort("airmass not found (concept %s)", concept);
    847847        }
    848848        # if (0)
     
    850850                options->dettemp = psMetadataLookupF32 (&status, input->concepts, concept);
    851851                if (!status)
    852                     psAbort ("psModules", "dettemp not found (concept %s)", concept);
     852                    psAbort("dettemp not found (concept %s)", concept);
    853853            }
    854854        if (!strcasecmp (option, "version")) {
     
    856856            options->version = psMetadataLookupF32 (&status, input->concepts, concept);
    857857            if (!status)
    858                 psAbort ("psModules", "version not found (concept %s)", concept);
     858                psAbort("version not found (concept %s)", concept);
    859859        }
    860860        if (!strcasecmp (option, "twilight")) {
     
    863863            options->twilight = psMetadataLookupF32 (&status, input->concepts, concept);
    864864            if (!status)
    865                 psAbort ("psModules", "twilight not found (concept %s)", concept);
     865                psAbort("twilight not found (concept %s)", concept);
    866866        }
    867867        # endif
Note: See TracChangeset for help on using the changeset viewer.