Index: trunk/psLib/src/sysUtils/psError.c
===================================================================
--- trunk/psLib/src/sysUtils/psError.c	(revision 1868)
+++ trunk/psLib/src/sysUtils/psError.c	(revision 1881)
@@ -10,6 +10,6 @@
  *  @author Eric Van Alst, MHPCC
  *   
- *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-23 22:02:06 $
+ *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-24 21:59:29 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -182,8 +182,15 @@
 
         for (int lcv=0;lcv<errorStackSize;lcv++) {
-            fprintf(fd," -> %s: %s\n     %s\n",
-                    errorStack[lcv]->name,
-                    psErrorCodeString(errorStack[lcv]->code),
-                    errorStack[lcv]->msg);
+            if(errorStack[lcv]->code >= PS_ERR_BASE) {
+                fprintf(fd," -> %s: %s\n     %s\n",
+                        errorStack[lcv]->name,
+                        psErrorCodeString(errorStack[lcv]->code),
+                        errorStack[lcv]->msg);
+            } else {
+                fprintf(fd," -> %s: %s\n     %s\n",
+                        errorStack[lcv]->name,
+                        strerror(errorStack[lcv]->code),
+                        errorStack[lcv]->msg);
+            }
         }
     }
