Index: trunk/psModules/src/config/pmConfigDump.c
===================================================================
--- trunk/psModules/src/config/pmConfigDump.c	(revision 26893)
+++ trunk/psModules/src/config/pmConfigDump.c	(revision 27057)
@@ -144,7 +144,11 @@
 
     psString resolved = pmConfigConvertFilename(filename, config, true, false); // Resolved filename
+    if (!resolved) {
+        psError(psErrorCodeLast(), false, "Unable to create file for configuration dump: %s", filename);
+        return false;
+    }
 
     if (!psMetadataConfigWrite(config->user, resolved)) {
-        psError(PS_ERR_IO, false, "Unable to dump configuration to %s", filename);
+        psError(psErrorCodeLast(), false, "Unable to dump configuration to %s", filename);
         psFree(resolved);
         return false;
