]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: print more detailed error message for 'tell' command
authorKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 10:01:52 +0000 (18:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 15 Jul 2015 11:05:39 +0000 (19:05 +0800)
* 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 <kchai@redhat.com>
src/ceph.in

index 3e70d8e0ad033303d766fd9db5fbd9d57a0b9283..7ee4e4a92ab86d9f41dd41c46d5fffce66ca5178 100755 (executable)
@@ -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