IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7345


Ignore:
Timestamp:
Jun 5, 2006, 11:58:18 AM (20 years ago)
Author:
rhl
Message:

1/ Return error rather than exiting
2/ Check more error codes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageLoop.c

    r6862 r7345  
    1111    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.INPUT");
    1212    if (!status) {
    13         psErrorStackPrint(stderr, "Can't find input data!\n");
    14         exit(EXIT_FAILURE);
     13        psError(PS_ERR_IO, false, "Can't find input data!");
     14        return false;
    1515    }
    1616
    1717    pmFPAview *view = pmFPAviewAlloc (0);
    18 
     18   
    1919    // files associated with the science image
    20     pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE);
    21 
     20    if (!pmFPAfileIOChecks (config->files, view, PM_FPA_BEFORE)) {
     21        psFree(view);
     22        return false;
     23    }
    2224    while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) {
    2325        psLogMsg ("psphot", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process);
Note: See TracChangeset for help on using the changeset viewer.