Changeset 9438
- Timestamp:
- Oct 9, 2006, 3:10:28 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageParseCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageParseCamera.c
r9342 r9438 33 33 pmFPAfileDefineFromConf (&status, config, "PPIMAGE.BIAS"); 34 34 pmFPAfileDefineFromDetDB (&status, config, "PPIMAGE.BIAS", input->fpa, PM_DETREND_TYPE_BIAS); 35 if (!status) psAbort ("ppImageParseDetrend", "can't find a bias image source"); 35 if (!status) { 36 psError (PS_ERR_IO, false, "can't find a bias image source"); 37 return NULL; 38 } 36 39 } 37 40 if (options->doDark) { … … 40 43 pmFPAfileDefineFromConf (&status, config, "PPIMAGE.DARK"); 41 44 pmFPAfileDefineFromDetDB (&status, config, "PPIMAGE.DARK", input->fpa, PM_DETREND_TYPE_DARK); 42 if (!status) psAbort ("ppImageParseDetrend", "can't find a dark image source"); 45 if (!status) { 46 psError (PS_ERR_IO, false, "can't find a dark image source"); 47 return NULL; 48 } 43 49 } 44 50 if (options->doMask) { … … 47 53 pmFPAfileDefineFromConf (&status, config, "PPIMAGE.MASK"); 48 54 pmFPAfileDefineFromDetDB (&status, config, "PPIMAGE.MASK", input->fpa, PM_DETREND_TYPE_MASK); 49 if (!status) psAbort ("ppImageParseDetrend", "can't find a mask image source"); 55 if (!status) { 56 psError (PS_ERR_IO, false, "can't find a mask image source"); 57 return NULL; 58 } 50 59 } 51 60 if (options->doShutter) { … … 54 63 pmFPAfileDefineFromConf (&status, config, "PPIMAGE.SHUTTER"); 55 64 pmFPAfileDefineFromDetDB (&status, config, "PPIMAGE.SHUTTER", input->fpa, PM_DETREND_TYPE_FLAT); 56 if (!status) psAbort ("ppImageParseDetrend", "can't find a shutter image source"); 65 if (!status) { 66 psError (PS_ERR_IO, false, "can't find a shutter image source"); 67 return NULL; 68 } 57 69 } 58 70 if (options->doFlat) { … … 61 73 pmFPAfileDefineFromConf (&status, config, "PPIMAGE.FLAT"); 62 74 pmFPAfileDefineFromDetDB (&status, config, "PPIMAGE.FLAT", input->fpa, PM_DETREND_TYPE_FLAT); 63 if (!status) psAbort ("ppImageParseDetrend", "can't find a flat image source"); 75 if (!status) { 76 psError (PS_ERR_IO, false, "can't find a flat image source"); 77 return NULL; 78 } 64 79 } 65 80
Note:
See TracChangeset
for help on using the changeset viewer.
