]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: improve the error message 10905/head
authorKefu Chai <kchai@redhat.com>
Tue, 5 Jan 2016 07:00:59 +0000 (15:00 +0800)
committerNathan Cutler <ncutler@suse.com>
Sun, 20 Nov 2016 12:03:57 +0000 (13:03 +0100)
Fixes: #11101
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit e19e8f1553fdf8b6b642d3222d28f242fab696f0)

src/ceph.in

index 54140126e3cd606395be180fb010bccd1e9f8f10..cf6f9a7a01c193e8fb95a0745dd6ecb9eaa9b9c0 100755 (executable)
@@ -798,9 +798,8 @@ def main():
             childargs = injectargs
         if not len(childargs):
             print >> sys.stderr, \
-                'Cannot use \'tell\' with interactive mode.', \
-                'For an interactive shell,', \
-                'please start "{0}" without non-option arguments.'.format(sys.argv[0])
+                '"{0} tell" requires additional arguments.'.format(sys.argv[0]), \
+                'Try "{0} tell <name> <command> [options...]" instead.'.format(sys.argv[0])
             return errno.EINVAL
 
     # fetch JSON sigs from command