IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 5:10:34 PM (20 years ago)
Author:
eugene
Message:

all sorts of error handling fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicHeaders.c

    r9374 r9574  
    99    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO");
    1010    if (!recipe) {
    11         psErrorStackPrint(stderr, "Can't find PSASTRO recipe!\n");
    12         exit(EXIT_FAILURE);
     11        psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe!\n");
     12        return false;
    1313    }
     14
    1415
    1516    // select the input data sources
    1617    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    1718    if (!input) {
    18         psErrorStackPrint(stderr, "Can't find input data!\n");
    19         exit(EXIT_FAILURE);
     19        psError(PSASTRO_ERR_CONFIG, true, "Can't find input data!\n");
     20        return false;
    2021    }
    2122
     
    2930
    3031    while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) {
    31         psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     32        psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3233        if (!chip->process || !chip->file_exists) { continue; }
    3334
Note: See TracChangeset for help on using the changeset viewer.