2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 18:49:04 +00:00

Update stripped exceptions to include node

While the exception had the node name, in some contexts the
exception was processed genericly.
This commit is contained in:
Jarrod Johnson 2020-01-28 10:18:58 -05:00
parent 445950d02a
commit c35f7d99f7

View File

@ -247,7 +247,7 @@ class ConfluentNodeError(object):
def strip_node(self, node):
# NOTE(jjohnson2): For single node errors, raise exception to
# trigger what a developer of that medium would expect
raise Exception(self.error)
raise Exception('{0}: {1}'.format(self.node, self.error))
class ConfluentResourceUnavailable(ConfluentNodeError):