2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-08-24 04:00:28 +00:00

Have the confluent message populate 'errorcode'

This allows web code framework to correctly handle responses
in noderange/async as if they were traditional straightforward rest calls.
This commit is contained in:
Jarrod Johnson
2016-09-26 16:00:00 -04:00
parent 7eb881d7e5
commit baf8587759

View File

@@ -182,7 +182,8 @@ class ConfluentNodeError(object):
self.error = errorstr
def raw(self):
return {'databynode': {self.node: {'error': self.error}}}
return {'databynode': {self.node: {'errorcode': self.apicode,
'error': self.error}}}
def html(self):
return self.node + ":" + self.error