- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psModules merged eligible /branches/eam_branches/stackphot.20100406/psModules 27623-27653 /branches/pap_delete/psModules 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psModules/src/config/pmConfigDump.c
r23753 r27840 14 14 #include "pmFPAfile.h" 15 15 #include "pmConfigCamera.h" 16 #include "pmErrorCodes.h" 16 17 17 18 #include "pmConfigDump.h" … … 55 56 56 57 if (!configCull(config->recipes, keep)) { 57 psError( PS_ERR_UNKNOWN, false, "Unable to cull system recipes.");58 psError(psErrorCodeLast(), false, "Unable to cull system recipes."); 58 59 psFree(keep); 59 60 return false; … … 64 65 psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras 65 66 if (!cameras) { 66 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");67 psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n"); 67 68 return false; 68 69 } … … 80 81 } 81 82 if (!configCull(recipes, keep)) { 82 psError( PS_ERR_UNKNOWN, false, "Unable to cull recipes for camera %s", item->name);83 psError(psErrorCodeLast(), false, "Unable to cull recipes for camera %s", item->name); 83 84 psFree(iter); 84 85 psFree(keep); … … 98 99 psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras 99 100 if (!cameras) { 100 psError(P S_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");101 psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n"); 101 102 return NULL; 102 103 } … … 144 145 145 146 psString resolved = pmConfigConvertFilename(filename, config, true, false); // Resolved filename 147 if (!resolved) { 148 psError(psErrorCodeLast(), false, "Unable to create file for configuration dump: %s", filename); 149 return false; 150 } 146 151 147 152 if (!psMetadataConfigWrite(config->user, resolved)) { 148 psError( PS_ERR_IO, false, "Unable to dump configuration to %s", filename);153 psError(psErrorCodeLast(), false, "Unable to dump configuration to %s", filename); 149 154 psFree(resolved); 150 155 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
