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:
parent
9e467c5e57
commit
2e7a8bee18
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user