[Neo-report] r1958 gregory - /trunk/neo/master/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 25 09:49:55 CET 2010


Author: gregory
Date: Thu Mar 25 09:49:54 2010
New Revision: 1958

Log:
Include cluster state in exception message.

Modified:
    trunk/neo/master/app.py

Modified: trunk/neo/master/app.py
==============================================================================
--- trunk/neo/master/app.py [iso-8859-1] (original)
+++ trunk/neo/master/app.py [iso-8859-1] Thu Mar 25 09:49:54 2010
@@ -532,7 +532,8 @@
         elif self.cluster_state == ClusterStates.STOPPING:
             raise protocol.NotReadyError
         else:
-            raise RuntimeError('unhandled cluster state')
+            raise RuntimeError('unhandled cluster state: %s' %
+                    (self.cluster_state, ))
         return (uuid, state, handler)
 
     def identifyNode(self, node_type, uuid, node):





More information about the Neo-report mailing list