Changeset 9574 for trunk/psastro/src/psastroParseCamera.c
- Timestamp:
- Oct 13, 2006, 5:10:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroParseCamera.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroParseCamera.c
r9374 r9574 1 1 # include "psastro.h" 2 // XXX leak free 2006.04.273 2 4 3 bool psastroParseCamera (pmConfig *config) { … … 8 7 // the input image(s) are required arguments; they define the camera 9 8 pmFPAfile *input = pmFPAfileDefineFromArgs (&status, config, "PSASTRO.INPUT", "INPUT"); 10 if (!status) { psAbort (__func__, "missing INPUT entry"); } 9 if (!status) { 10 psError(PSASTRO_ERR_CONFIG, false, "Failed to build FPA from PSASTRO.INPUT"); 11 return false; 12 } 11 13 12 14 // select recipe options supplied on command line … … 30 32 int chipNum = atoi(chips->data[i]); 31 33 if (! pmFPASelectChip(input->fpa, chipNum, false)) { 32 psError StackPrint(stderr, "Chip number %d doesn't exist in camera.\n", chipNum);33 exit(EXIT_FAILURE);34 psError(PSASTRO_ERR_CONFIG, true, "Chip number %d doesn't exist in camera.\n", chipNum); 35 return false; 34 36 } 35 37 } … … 37 39 psFree (chips); 38 40 39 psTrace( __func__, 1, "Done with psastroParseCamera...\n");41 psTrace("psastro", 1, "Done with psastroParseCamera...\n"); 40 42 return true; 41 43 }
Note:
See TracChangeset
for help on using the changeset viewer.
