OSSP CVS Repository

ossp - Check-in [3487]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3487
Date: 2003-Jul-02 17:29:08 (local)
2003-Jul-02 15:29:08 (UTC)
User:ms
Branch:
Comment: Bugfix and add temporary dir error logic.
Tickets:
Inspections:
Files:
ossp-pkg/rc/rc_error.c      1.6 -> 1.7     9 inserted, 2 deleted

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