From: Kefu Chai Date: Wed, 15 Jul 2015 10:01:52 +0000 (+0800) Subject: ceph.in: print more detailed error message for 'tell' command X-Git-Tag: v9.0.3~28^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=972dc9145235ff0f60663369ebcab8c16628b89f;p=ceph.git ceph.in: print more detailed error message for 'tell' command * we do not allow user specify a certain daemon when starting an interactive session. the existing error message could lead to some confusion. so put more details in it. Fixes: #11101 Signed-off-by: Kefu Chai --- diff --git a/src/ceph.in b/src/ceph.in index 3e70d8e0ad03..7ee4e4a92ab8 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -772,7 +772,9 @@ def main(): childargs = injectargs if not len(childargs): print >> sys.stderr, \ - 'Cannot use \'tell\' with interactive mode' + 'Cannot use \'tell\' with interactive mode.', \ + 'For an interactive shell,', \ + 'please start "{0}" without non-option arguments.'.format(sys.argv[0]) return errno.EINVAL # fetch JSON sigs from command