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

    r9374 r9574  
    1212    psMetadata *recipe  = psMetadataLookupPtr (NULL, config->recipes, "PSASTRO");
    1313    if (!recipe) {
    14         psErrorStackPrint(stderr, "Can't find PSASTRO recipe!\n");
    15         exit(EXIT_FAILURE);
     14        psError(PSASTRO_ERR_CONFIG, true, "Can't find PSASTRO recipe!\n");
     15        return false;
    1616    }
    1717
     
    1919    pmFPAfile *output = psMetadataLookupPtr (NULL, config->files, "PSASTRO.OUTPUT");
    2020    if (!output) {
    21         psErrorStackPrint(stderr, "Can't find output data!\n");
    22         exit(EXIT_FAILURE);
     21        psError(PSASTRO_ERR_CONFIG, true, "Can't find output data!\n");
     22        return false;
    2323    }
    2424
     
    3333
    3434    while ((chip = pmFPAviewNextChip (view, output->fpa, 1)) != NULL) {
    35         psTrace (__func__, 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
     35        psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
    3636        if (!chip->process || !chip->file_exists) { continue; }
    3737        pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
    3838
    3939        while ((cell = pmFPAviewNextCell (view, output->fpa, 1)) != NULL) {
    40             psTrace (__func__, 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
     40            psTrace ("psastro", 4, "Cell %d: %x %x\n", view->cell, cell->file_exists, cell->process);
    4141            if (!cell->process || !cell->file_exists) { continue; }
    4242            pmFPAfileIOChecks (config, view, PM_FPA_BEFORE);
Note: See TracChangeset for help on using the changeset viewer.