]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.in: improve the error message 7106/head
authorKefu Chai <kchai@redhat.com>
Tue, 5 Jan 2016 07:00:59 +0000 (15:00 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 5 Jan 2016 07:02:16 +0000 (15:02 +0800)
Fixes: #11101
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/ceph.in

index 1142b20d2bce944d87fec57e84ae0c61122e6caf..597eeecc2f690abf1b2965a02c211830b2756bbf 100755 (executable)
@@ -814,9 +814,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