Index: trunk/psModules/src/config/pmConfigDump.c
===================================================================
--- trunk/psModules/src/config/pmConfigDump.c	(revision 27083)
+++ trunk/psModules/src/config/pmConfigDump.c	(revision 27137)
@@ -55,5 +55,5 @@
 
     if (!configCull(config->recipes, keep)) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to cull system recipes.");
+        psError(psErrorCodeLast(), false, "Unable to cull system recipes.");
         psFree(keep);
         return false;
@@ -64,5 +64,5 @@
     psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras
     if (!cameras) {
-        psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");
+        psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n");
         return false;
     }
@@ -80,5 +80,5 @@
         }
         if (!configCull(recipes, keep)) {
-            psError(PS_ERR_UNKNOWN, false, "Unable to cull recipes for camera %s", item->name);
+            psError(psErrorCodeLast(), false, "Unable to cull recipes for camera %s", item->name);
             psFree(iter);
             psFree(keep);
@@ -98,5 +98,5 @@
       psMetadata *cameras = psMetadataLookupMetadata(NULL, config->system, "CAMERAS"); // Known cameras
       if (!cameras) {
-          psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to find CAMERAS in the system configuration.\n");
+          psError(PM_ERR_CONFIG, false, "Unable to find CAMERAS in the system configuration.\n");
           return NULL;
       }
