OSSP CVS Repository

ossp - Difference in ossp-pkg/rc/rc_error.c versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/rc/rc_error.c 1.6 -> 1.7

--- rc_error.c   2003/07/02 15:07:48     1.6
+++ rc_error.c   2003/07/02 15:29:08     1.7
@@ -78,13 +78,20 @@
                 fprintf(stderr, "    Error condition in %s:%s():%d.\n", \
                     Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);
         }
-        else if ((rc_return_t)Localerr.ex_value == RC_ERR_DIR) {
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_LOC) {
             fprintf(stderr, "    Location dir %s could not be opened.\n", \
                 configGetval(RC_LOC_VAL));
             if (configGetval(RC_DBG_VAL))
                 fprintf(stderr, "    Error condition in %s:%s():%d.\n", \
                     Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);
         }
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_TMP) {
+            fprintf(stderr, "    Temporary dir %s could not be opened.\n", \
+                configGetval(RC_TMP_VAL));
+            if (configGetval(RC_DBG_VAL))
+                fprintf(stderr, "    Error condition in %s:%s():%d.\n", \
+                    Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);
+        }
         else if ((rc_return_t)Localerr.ex_value == RC_ERR_RCF) {
             fprintf(stderr, "    One or more rc files could not be opened.\n");
             if (configGetval(RC_DBG_VAL))
@@ -104,7 +111,7 @@
                     Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);
         }
         else {
-            fprintf(stderr, "    \n    Generic failure condition of class '%s',.\n");
+            fprintf(stderr, "    Generic failure condition of class '%s',.\n", (char *)Localerr.ex_class);
             if (configGetval(RC_DBG_VAL))
                 fprintf(stderr, "    Error condition in %s:%s():%d.\n", \
                     Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);

CVSTrac 2.0.1