From 08cb697a1d8276e72e6075a29f2f07464e55ec0f Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Wed, 31 May 2017 15:34:25 +0800 Subject: [PATCH] tool/ceph: print return code when json_command failed Signed-off-by: liuchang0812 --- src/ceph.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)