OSSP CVS Repository

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

ossp-pkg/rc/rc_error.c 1.1 -> 1.2

--- rc_error.c   2002/07/10 19:02:24     1.1
+++ rc_error.c   2003/06/23 16:09:47     1.2
@@ -40,12 +40,24 @@
     if (FAILED((rc_return_t)Localerr.ex_value)) { /* Error condition */
         if ((rc_return_t)Localerr.ex_value == RC_ERR_TRM)
             exit(0);
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_USE)
+            fprintf(stderr, "    Error condition, API usage is wrong.\n");
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_MEM)
+            fprintf(stderr, "    Error condition, memory allocation failure.\n");
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_SYS)
+            fprintf(stderr, "    Error condition, underlying system failure.\n");
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_IO)
+            fprintf(stderr, "    Error condition, input output failure.\n");
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_INT)
+            fprintf(stderr, "    Error condition, internal failure.\n");
         else if ((rc_return_t)Localerr.ex_value == RC_ERR_FNC)
             fprintf(stderr, "    Error condition, function file could not be opened.\n");
         else if ((rc_return_t)Localerr.ex_value == RC_ERR_DIR)
             fprintf(stderr, "    Error condition, location dir could not be opened.\n");
         else if ((rc_return_t)Localerr.ex_value == RC_ERR_RCF)
             fprintf(stderr, "    Error condition, rc file could not be opened.\n");
+        else if ((rc_return_t)Localerr.ex_value == RC_ERR_CFG)
+            fprintf(stderr, "    Error condition, configuration and options failure.\n");
         else
             fprintf(stderr, "    Error condition of class '%s',\n    exception %d in %s:%s():%d.\n", (char *)Localerr.ex_class, (int)Localerr.ex_value, Localerr.ex_file, Localerr.ex_func, Localerr.ex_line);
         exit(1); /* Return failure */

CVSTrac 2.0.1