Changeset 11057
- Timestamp:
- Jan 11, 2007, 4:53:01 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStatsStandAlone.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsStandAlone.c
r10983 r11057 43 43 if (!outFile) { 44 44 psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s\n", outName); 45 status = PS_EXIT_DATA_ERROR; 45 // XXX this could be a system or config error, but not a data error 46 status = PS_EXIT_CONFIG_ERROR; 46 47 goto die; 47 48 } 48 49 } else { 49 50 psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file.\n"); 50 status = PS_EXIT_ DATA_ERROR;51 status = PS_EXIT_CONFIG_ERROR; 51 52 goto die; 52 53 } … … 55 56 // Go through the FPA and do the hard work 56 57 psMetadata *results = ppStatsLoop(NULL, data, config); 57 58 58 if (psListLength(results->list) == 0) { 59 59 psLogMsg("ppStats", PS_LOG_ERROR, "No output.\n"); 60 60 psFree(results); 61 status = PS_EXIT_ UNKNOWN_ERROR;61 status = PS_EXIT_DATA_ERROR; 62 62 goto die; 63 63 } … … 68 68 psLogMsg("ppStats", PS_LOG_ERROR, "Unable to generate configuration file with result.\n"); 69 69 psFree(results); 70 status = PS_EXIT_ SYS_ERROR;70 status = PS_EXIT_CONFIG_ERROR; 71 71 goto die; 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
