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/psastroChipAstrom.c

    r9374 r9574  
    1111    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO");
    1212    if (!recipe) {
    13         psErrorStackPrint(stderr, "Can't find PSASTRO recipe!\n");
    14         exit(EXIT_FAILURE);
     13        psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe");
     14        return false;
    1515    }
    1616
     
    1818    pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
    1919    if (!input) {
    20         psErrorStackPrint(stderr, "Can't find input data!\n");
    21         exit(EXIT_FAILURE);
     20        psError(PSASTRO_ERR_CONFIG, true, "Can't find input data");
     21        return false;
    2222    }
    2323
     
    2929
    3030    while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) {
    31         psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     31        psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3232        if (!chip->process || !chip->file_exists) { continue; }
    3333       
    3434        while ((cell = pmFPAviewNextCell (view, fpa, 1)) != NULL) {
    35             psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     35            psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    3636            if (!cell->process || !cell->file_exists) { continue; }
    3737
Note: See TracChangeset for help on using the changeset viewer.