Changeset 7346
- Timestamp:
- Jun 5, 2006, 11:59:54 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotParseCamera.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotParseCamera.c
r7084 r7346 7 7 8 8 pmFPAfile *input = pmFPAfileFromArgs (&status, config, "PSPHOT.INPUT", "INPUT"); 9 if (!status) { psAbort (__func__, "missing INPUT entry"); } 9 if (!status) { 10 psError(PSPHOT_ERR_CONFIG, false, "Failed to build FPA from PSPHOT.INPUT"); 11 return status; 12 } 10 13 11 14 // select recipe options supplied on command line … … 62 65 pmFPAfileAddFileNames (config->files, "OUTPUT", output, PM_FPA_MODE_WRITE); 63 66 64 // Chip selection: turn on only the chips specified 65 char *chipLine = psMetadataLookupStr( NULL, config->arguments, "CHIP_SELECTIONS");67 // Chip selection: turn on only the chips specified (pass status to suppress missing-key log msg) 68 char *chipLine = psMetadataLookupStr(&status, config->arguments, "CHIP_SELECTIONS"); 66 69 psArray *chips = psStringSplitArray (chipLine, ",", false); 67 70 if (chips->n > 0) { … … 70 73 int chipNum = atoi(chips->data[i]); 71 74 if (! pmFPASelectChip(input->fpa, chipNum, false)) { 72 psError StackPrint(stderr, "Chip number %d doesn't exist in camera.\n", chipNum);73 exit(EXIT_FAILURE);75 psError(PS_ERR_IO, false, "Chip number %d doesn't exist in camera.\n", chipNum); 76 return false; 74 77 } 75 78 } … … 78 81 79 82 psTrace(__func__, 1, "Done with psphotParseCamera...\n"); 83 84 psErrorClear(); // some metadata lookup may have failed 85 80 86 return true; 81 87 }
Note:
See TracChangeset
for help on using the changeset viewer.
