qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject svn commit: r740756 - /qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp
Date Wed, 04 Feb 2009 14:30:24 GMT
Author: aconway
Date: Wed Feb  4 14:30:23 2009
New Revision: 740756

URL: http://svn.apache.org/viewvc?rev=740756&view=rev
Log:
Clean up error messages.

Modified:
    qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp?rev=740756&r1=740755&r2=740756&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp Wed Feb  4 14:30:23 2009
@@ -143,21 +143,21 @@
     std::ostringstream  os;
     os << msg << ": ";
     switch (err) {
-      case CPG_OK: os << ": ok"; break;
-      case CPG_ERR_TIMEOUT: os << ": timeout"; break;
-      case CPG_ERR_TRY_AGAIN: os << ": timeout. The aisexec daemon may not be running";
break;
-      case CPG_ERR_INVALID_PARAM: os << ": invalid param"; break;
-      case CPG_ERR_NO_MEMORY: os << ": no memory"; break;
-      case CPG_ERR_BAD_HANDLE: os << ": bad handle"; break;
-      case CPG_ERR_ACCESS: os << ": access denied. You may need to set your group ID
to 'ais'"; break;
-      case CPG_ERR_NOT_EXIST: os << ": not exist"; break;
-      case CPG_ERR_EXIST: os << ": exist"; break;
-      case CPG_ERR_NOT_SUPPORTED: os << ": not supported"; break;
+      case CPG_OK: os << "ok"; break;
+      case CPG_ERR_TIMEOUT: os << "timeout"; break;
+      case CPG_ERR_TRY_AGAIN: os << "timeout. The aisexec daemon may not be running";
break;
+      case CPG_ERR_INVALID_PARAM: os << "invalid param"; break;
+      case CPG_ERR_NO_MEMORY: os << "no memory"; break;
+      case CPG_ERR_BAD_HANDLE: os << "bad handle"; break;
+      case CPG_ERR_ACCESS: os << "access denied. You may need to set your group ID
to 'ais'"; break;
+      case CPG_ERR_NOT_EXIST: os << "not exist"; break;
+      case CPG_ERR_EXIST: os << "exist"; break;
+      case CPG_ERR_NOT_SUPPORTED: os << "not supported"; break;
         // The following are not mapped, or are incorrectly mapped in corosync 0-92-5
-        // case CPG_ERR_LIBRARY: os << ": library"; break;
-        // case CPG_ERR_SECURITY: os << ": security"; break;
-        // case CPG_ERR_TOO_MANY_GROUPS: os << ": too many groups"; break;
-      default: os << ": unknown cpg error";
+        // case CPG_ERR_LIBRARY: os << "library"; break;
+        // case CPG_ERR_SECURITY: os << "security"; break;
+        // case CPG_ERR_TOO_MANY_GROUPS: os << "too many groups"; break;
+      default: os << ": unknown cpg error " << err;
     };
     os << " (" << err << ")";
     return os.str();



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message