From: liuchang0812 Date: Wed, 31 May 2017 07:34:25 +0000 (+0800) Subject: tool/ceph: print return code when json_command failed X-Git-Tag: v12.1.0~259^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F15378%2Fhead;p=ceph.git tool/ceph: print return code when json_command failed Signed-off-by: liuchang0812 --- diff --git a/src/ceph.in b/src/ceph.in index cf78d5d343b..e02b8e5dd7d 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -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)