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:
@@ -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
|
||||
|
Reference in New Issue
Block a user