Index: trunk/psLib/src/sysUtils/psError.c
===================================================================
--- trunk/psLib/src/sysUtils/psError.c	(revision 1798)
+++ trunk/psLib/src/sysUtils/psError.c	(revision 1807)
@@ -10,6 +10,6 @@
  *  @author Eric Van Alst, MHPCC
  *   
- *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-07 19:05:07 $
+ *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -96,17 +96,17 @@
     va_list argPtr;             // variable list arguement pointer
 
-    // Get the variable list parameters to pass to logging function
-    va_start(argPtr, fmt);
-
-    // Call logging function with PS_LOG_ERROR level
-    psLogMsgV(name, PS_LOG_ERROR, fmt, argPtr);
-
     if (new) {
         psErrorClear();
     }
 
+    // Get the variable list parameters to pass to logging function
+    va_start(argPtr, fmt);
+
     vsnprintf(errMsg,1024,fmt,argPtr);
     err = psErrAlloc(name,code,errMsg);
     pushErrorStack(err);
+
+    // Call logging function with PS_LOG_ERROR level
+    psLogMsg(name, PS_LOG_ERROR, errMsg);
 
     // Clean up stack after variable argument has been used
@@ -116,5 +116,5 @@
 }
 
-const psErr* psErrorGet(int which)
+psErr* psErrorGet(int which)
 {
     psErr* result;
@@ -134,5 +134,5 @@
 }
 
-const psErr* psErrorLast(void)
+psErr* psErrorLast(void)
 {
     return psErrorGet(0);
Index: trunk/psLib/src/sysUtils/psError.h
===================================================================
--- trunk/psLib/src/sysUtils/psError.h	(revision 1798)
+++ trunk/psLib/src/sysUtils/psError.h	(revision 1807)
@@ -12,6 +12,6 @@
  *  @author Eric Van Alst, MHPCC
  *
- *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-10 23:20:35 $
+ *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -50,5 +50,5 @@
  *  @return    Error message object at 'which'
  */
-const psErr* psErrorGet(
+psErr* psErrorGet(
     int which                          ///< position in the error stack. 0 is last error on stack.
 );
@@ -61,5 +61,5 @@
  *  @return psErr*     Reference to last error message on error stack
  */
-const psErr* psErrorLast(void);
+psErr* psErrorLast(void);
 
 /** Clears the error stack.
Index: trunk/psLib/src/sysUtils/psErrorCodes.c
===================================================================
--- trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1798)
+++ trunk/psLib/src/sysUtils/psErrorCodes.c	(revision 1807)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-11 00:43:54 $
+ *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -38,6 +38,7 @@
             {PS_ERR_MEMORY_DEREF_USAGE,"dereferenced memory still used"},
             {PS_ERR_BAD_PARAMETER_VALUE,"parameter is out-of-range"},
+            {PS_ERR_BAD_PARAMETER_TYPE,"parameter is of unsupported data-type"},
             {PS_ERR_BAD_PARAMETER_NULL,"parameter is null"},
-            {PS_ERR_BAD_PARAMETER_LENGTH,"parameter string is too long"},
+            {PS_ERR_BAD_PARAMETER_SIZE,"size of parameter's data is outside of acceptable range."},
             {PS_ERR_UNEXPECTED_NULL,"unexpected NULL foun"},
             //~End
Index: trunk/psLib/src/sysUtils/psErrorCodes.h
===================================================================
--- trunk/psLib/src/sysUtils/psErrorCodes.h	(revision 1798)
+++ trunk/psLib/src/sysUtils/psErrorCodes.h	(revision 1807)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-11 00:43:54 $
+ *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -47,6 +47,7 @@
     PS_ERR_MEMORY_DEREF_USAGE,   ///< dereferenced memory still used
     PS_ERR_BAD_PARAMETER_VALUE,   ///< parameter is out-of-range
+    PS_ERR_BAD_PARAMETER_TYPE,   ///< parameter is of unsupported data-type
     PS_ERR_BAD_PARAMETER_NULL,   ///< parameter is null
-    PS_ERR_BAD_PARAMETER_LENGTH,   ///< parameter string is too long
+    PS_ERR_BAD_PARAMETER_SIZE,   ///< size of parameter's data is outside of acceptable range.
     PS_ERR_UNEXPECTED_NULL,   ///< unexpected NULL foun
     //~End
Index: trunk/psLib/src/sysUtils/psLogMsg.c
===================================================================
--- trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1798)
+++ trunk/psLib/src/sysUtils/psLogMsg.c	(revision 1807)
@@ -11,6 +11,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-11 03:03:36 $
+ *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -383,2 +383,10 @@
     va_end(ap);
 }
+void psWarning(const char* name, const char* fmt, ...)
+{
+    va_list ap;
+
+    va_start(ap, fmt);
+    psLogMsgV(name, PS_LOG_WARN, fmt, ap);
+    va_end(ap);
+}
Index: trunk/psLib/src/sysUtils/psLogMsg.h
===================================================================
--- trunk/psLib/src/sysUtils/psLogMsg.h	(revision 1798)
+++ trunk/psLib/src/sysUtils/psLogMsg.h	(revision 1807)
@@ -11,6 +11,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-11 03:03:36 $
+ *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-14 20:01:52 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -99,4 +99,17 @@
 };
 
+/** Logs a warning message.
+ *
+ *  This procedure logs a message to the destination set by a prior
+ *  call to psLogSetDestination(), This is equivalent to calling
+ *  psLogMsg with a level of PS_LOG_WARN.
+ *
+ */
+void psWarning(
+    const char* name,
+    const char* fmt,
+    ...
+);
+
 /// @}
 
