- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
pswarp/src/pswarpDefineSkycell.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/pswarp/src/pswarpDefineSkycell.c
r21323 r27840 47 47 } 48 48 if (infiles->n != 1) { 49 psError(PS _ERR_IO, false, "Found n == %ld files in %s in arguments\n", infiles->n, argname);49 psError(PSWARP_ERR_CONFIG, false, "Found n == %ld files in %s in arguments\n", infiles->n, argname); 50 50 return false; 51 51 } … … 54 54 psString realName = pmConfigConvertFilename (infiles->data[0], config, false, false); 55 55 if (!realName) { 56 psError( PS_ERR_IO, false, "Failed to convert file name %s\n", (char *) infiles->data[0]);56 psError(psErrorCodeLast(), false, "Failed to convert file name %s\n", (char *) infiles->data[0]); 57 57 return false; 58 58 } … … 61 61 fits = psFitsOpen (realName, "r"); 62 62 if (!fits) { 63 psError( PS_ERR_IO, false, "Failed to open file %s\n", realName);63 psError(psErrorCodeLast(), false, "Failed to open file %s\n", realName); 64 64 psFree (realName); 65 65 return false; … … 67 67 phu = psFitsReadHeader (NULL, fits); 68 68 if (!phu) { 69 psError( PS_ERR_IO, false, "Failed to read file header %s\n", realName);69 psError(psErrorCodeLast(), false, "Failed to read file header %s\n", realName); 70 70 psFree (realName); 71 71 return false; … … 87 87 format = pmConfigCameraFormatFromHeader (NULL, NULL, NULL, skyConfig, phu, false); 88 88 if (!format) { 89 psError( PS_ERR_IO, false, "Failed to read CCD format from %s\n", realName);89 psError(psErrorCodeLast(), false, "Failed to read CCD format from %s\n", realName); 90 90 psFree(phu); 91 91 psFree (realName); … … 100 100 fpa = pmFPAConstruct (skyConfig->camera, skyConfig->cameraName); 101 101 if (!fpa) { 102 psError( PS_ERR_IO, false, "Failed to construct FPA from %s", realName);102 psError(psErrorCodeLast(), false, "Failed to construct FPA from %s", realName); 103 103 psFree (realName); 104 104 return false; … … 110 110 file = pmFPAfileDefineInput (skyConfig, fpa, NULL, filename); 111 111 if (!file) { 112 psError( PS_ERR_IO, false, "file %s not defined\n", filename);112 psError(psErrorCodeLast(), false, "file %s not defined\n", filename); 113 113 psFree(phu); 114 114 psFree(fpa); … … 126 126 file->fileLevel = pmFPAPHULevel(format); 127 127 if (file->fileLevel == PM_FPA_LEVEL_NONE) { 128 psError(PS _ERR_IO, true, "Unable to determine file level for %s\n", file->name);128 psError(PSWARP_ERR_CONFIG, true, "Unable to determine file level for %s\n", file->name); 129 129 psFree(phu); 130 130 psFree(fpa); … … 137 137 pmFPAview *view = pmFPAAddSourceFromHeader (fpa, phu, format); 138 138 if (!view) { 139 psError( PS_ERR_IO, false, "Unable to determine source for %s", file->name);139 psError(psErrorCodeLast(), false, "Unable to determine source for %s", file->name); 140 140 psFree(phu); 141 141 psFree (fpa);
Note:
See TracChangeset
for help on using the changeset viewer.
