Commit 1263563d authored by Grégory Wisniewski's avatar Grégory Wisniewski

Include cluster state in exception message.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1958 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 6fdf3270
...@@ -532,7 +532,8 @@ class Application(object): ...@@ -532,7 +532,8 @@ class Application(object):
elif self.cluster_state == ClusterStates.STOPPING: elif self.cluster_state == ClusterStates.STOPPING:
raise protocol.NotReadyError raise protocol.NotReadyError
else: else:
raise RuntimeError('unhandled cluster state') raise RuntimeError('unhandled cluster state: %s' %
(self.cluster_state, ))
return (uuid, state, handler) return (uuid, state, handler)
def identifyNode(self, node_type, uuid, node): def identifyNode(self, node_type, uuid, node):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment