tool/ceph: print return code when json_command failed

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
This commit is contained in:
liuchang0812 2017-05-31 15:34:25 +08:00
parent 282f8d4caf
commit 08cb697a1d

View File

@ -363,9 +363,9 @@ def do_extended_help(parser, args, target, partial):
prefix='get_command_descriptions',
timeout=10)
if ret:
print("couldn't get command descriptions for {0}: {1}".
format(target, outs), file=sys.stderr)
return 1
print("couldn't get command descriptions for {0}: {1} ({2})".
format(target, outs, ret), file=sys.stderr)
return ret
else:
return help_for_sigs(outbuf.decode('utf-8'), partial)