From 24c3c8af3f99c6a11fb5e0fd4945982d3718a666 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Jul 2015 18:01:52 +0800 Subject: [PATCH] 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 (cherry picked from commit 972dc9145235ff0f60663369ebcab8c16628b89f) (cherry picked from commit f18900f2eb724acd898e8b32fe75c0850d7cf94c) --- src/ceph.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index 2b6adf4dc579a..4fc4a645e6cb1 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -794,7 +794,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 -- 2.39.5