Changeset 27004 for trunk/ppStack/src/ppStackArguments.c
- Timestamp:
- Feb 18, 2010, 6:42:01 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStackArguments.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
trunk/ppStack/src/ppStackArguments.c
r26078 r27004 43 43 value = psMetadataLookup##TYPE(&mdok, recipe, RECIPENAME); \ 44 44 if (!mdok) { \ 45 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \45 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 46 46 RECIPENAME, PPSTACK_RECIPE); \ 47 47 goto ERROR; \ … … 58 58 value = psMetadataLookup##TYPE(&mdok, recipe, RECIPENAME); \ 59 59 if (!mdok) { \ 60 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \60 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 61 61 RECIPENAME, PPSTACK_RECIPE); \ 62 62 goto ERROR; \ … … 73 73 name = psMetadataLookupStr(NULL, recipe, RECIPENAME); \ 74 74 if (!name) { \ 75 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s", \76 RECIPENAME, PPSTACK_RECIPE);\75 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", \ 76 RECIPENAME, PPSTACK_RECIPE); \ 77 77 goto ERROR; \ 78 78 } \ … … 108 108 value = psMetadataLookupStr(NULL, recipe, mdName); 109 109 if (!value) { 110 psError(P S_ERR_BAD_PARAMETER_VALUE, true, "Unable to find %s in recipe %s",110 psError(PPSTACK_ERR_CONFIG, true, "Unable to find %s in recipe %s", 111 111 mdName, PPSTACK_RECIPE); 112 112 return false; … … 207 207 psMetadata *inputs = psMetadataConfigRead(NULL, &numBad, argv[argNum], false); // Input file info 208 208 if (!inputs || numBad > 0) { 209 psError(P S_ERR_BAD_PARAMETER_VALUE, false, "Unable to cleanly read MDC file with inputs.");209 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to cleanly read MDC file with inputs."); 210 210 return false; 211 211 } … … 229 229 int numThreads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads 230 230 if (numThreads > 0 && !psThreadPoolInit(numThreads)) { 231 psError(P S_ERR_UNKNOWN, false, "Unable to setup %d threads", numThreads);231 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to setup %d threads", numThreads); 232 232 return false; 233 233 } … … 247 247 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // Recipe 248 248 if (!recipe) { 249 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find recipe %s", PPSTACK_RECIPE);249 psError(PPSTACK_ERR_CONFIG, false, "Unable to find recipe %s", PPSTACK_RECIPE); 250 250 goto ERROR; 251 251 }
Note:
See TracChangeset
for help on using the changeset viewer.
