2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-27 11:30:06 +00:00

Fix nodemedia silent errors

For 'databynode' style responses, error data was suppressed.

Make printerror more thorough at handling such errors.
This commit is contained in:
Jarrod Johnson 2018-01-29 11:21:46 -05:00
parent 9e467c5e57
commit 2e7a8bee18

View File

@ -59,6 +59,9 @@ def printerror(res, node=None):
sys.stderr.write('{0}\n'.format(res['error']))
if 'errorcode' not in res:
exitcode = 1
for node in res.get('databynode', ()):
printerror(res['databynode'][node], node)
def attach_media(noderange, media):
global exitcode