2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-14 03:37:49 +00:00

Fix confetty client behavior when trying to show something that is 404

This commit is contained in:
Jarrod Johnson 2014-03-03 15:48:33 -05:00
parent 79fc5faaf6
commit 3e1f90882f

View File

@ -198,6 +198,11 @@ def do_command(command, server):
for item in res['item']:
print item["href"]
else: # generic attributes to list
if 'error' in res:
sys.stderr.write(res['error'] + '\n')
if 'errorcode' in res:
exitcode = res['errorcode']
continue
for key in res.iterkeys():
notes = []
if res[key] is None:
@ -219,7 +224,7 @@ def do_command(command, server):
notes.append('Derived from expression "%s"' % res[key]['expression'])
notestr = '(' + ', '.join(notes) + ')'
output = '{0:<40} {1:>39}'.format(attrstr, notestr)
print output
print(output)
elif argv[0] == 'start':
targpath = fullpath_target(argv[1])
currconsole = targpath