Changeset 24587
- Timestamp:
- Jun 25, 2009, 3:51:30 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotArguments.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotArguments.c
r24144 r24587 105 105 pmConfig *config = pmConfigRead(&argc, argv, PSPHOT_RECIPE); 106 106 if (config == NULL) { 107 psError(PSPHOT_ERR_CONFIG, false, "Can't read site configuration");107 psErrorStackPrint(stderr, "Can't read site configuration"); 108 108 exit(PS_EXIT_CONFIG_ERROR); 109 109 } … … 121 121 if ((N = psArgumentGet (argc, argv, "-modeltest"))) { 122 122 if (argc<=N+2) { 123 psError(PSPHOT_ERR_ARGUMENTS, true, 124 "Expected to see 2 more arguments; saw %d", argc - 1); 123 psErrorStackPrint(stderr, "Expected to see 2 more arguments; saw %d", argc - 1); 125 124 exit(PS_EXIT_CONFIG_ERROR); 126 125 } … … 137 136 if ((N = psArgumentGet (argc, argv, "-model"))) { 138 137 if (argc<=N+1) { 139 psError(PSPHOT_ERR_ARGUMENTS, true, 140 "Expected to see 1 more argument; saw %d", argc - 1); 138 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 141 139 exit(PS_EXIT_CONFIG_ERROR); 142 140 } … … 149 147 if ((N = psArgumentGet (argc, argv, "-fitmode"))) { 150 148 if (argc<=N+1) { 151 psError(PSPHOT_ERR_ARGUMENTS, true, 152 "Expected to see 1 more argument; saw %d", argc - 1); 149 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 153 150 exit(PS_EXIT_CONFIG_ERROR); 154 151 } … … 159 156 if ((N = psArgumentGet (argc, argv, "-fitset"))) { 160 157 if (argc<=N+1) { 161 psError(PSPHOT_ERR_ARGUMENTS, true, 162 "Expected to see 1 more argument; saw %d", argc - 1); 158 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 163 159 exit(PS_EXIT_CONFIG_ERROR); 164 160 } … … 172 168 if ((N = psArgumentGet (argc, argv, "-photcode"))) { 173 169 if (argc<=N+1) { 174 psError(PSPHOT_ERR_ARGUMENTS, true, 175 "Expected to see 1 more argument; saw %d", argc - 1); 170 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 176 171 exit(PS_EXIT_CONFIG_ERROR); 177 172 } … … 190 185 if ((N = psArgumentGet (argc, argv, "-break"))) { 191 186 if (argc<=N+1) { 192 psError(PSPHOT_ERR_ARGUMENTS, true, 193 "Expected to see 1 more argument; saw %d", argc - 1); 187 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 194 188 exit(PS_EXIT_CONFIG_ERROR); 195 189 } … … 202 196 if ((N = psArgumentGet (argc, argv, "-region"))) { 203 197 if (argc<=N+1) { 204 psError(PSPHOT_ERR_ARGUMENTS, true, 205 "Expected to see 1 more argument; saw %d", argc - 1); 198 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 206 199 exit(PS_EXIT_CONFIG_ERROR); 207 200 } … … 214 207 if ((N = psArgumentGet (argc, argv, "-chip"))) { 215 208 if (argc<=N+1) { 216 psError(PSPHOT_ERR_ARGUMENTS, true, 217 "Expected to see 1 more argument; saw %d", argc - 1); 209 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1); 218 210 exit(PS_EXIT_CONFIG_ERROR); 219 211 }
Note:
See TracChangeset
for help on using the changeset viewer.
