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/psastroMosaicAstrom.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    }
    1414
     
    1616    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    1717    if (!input) {
    18         psErrorStackPrint(stderr, "Can't find input data!\n");
    19         exit(EXIT_FAILURE);
     18        psError(PSASTRO_ERR_CONFIG, true, "Can't find input data!\n");
     19        return false;
    2020    }
    2121
Note: See TracChangeset for help on using the changeset viewer.