Index: trunk/psLib/src/sys/psError.c
===================================================================
--- trunk/psLib/src/sys/psError.c	(revision 4556)
+++ trunk/psLib/src/sys/psError.c	(revision 7250)
@@ -10,6 +10,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-07-15 02:33:54 $
+ *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-05-31 19:53:36 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -91,4 +91,11 @@
 
     vsnprintf(errMsg,2048,format,argPtr);
+    // Remove a single trailing \n from message -- it interferes with psErrorStackPrint
+    int len = strlen(errMsg);
+    if (len > 0 && errMsg[len - 1] == '\n') {
+        errMsg[len - 1] = '\0';
+        len--;
+    }
+
     err = psErrAlloc(msgName,code,errMsg);
     pushErrorStack(err);
