]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph daemonperf: make error message less confusing
authorMykola Golub <mgolub@mirantis.com>
Fri, 3 Apr 2015 05:41:16 +0000 (08:41 +0300)
committerMykola Golub <mgolub@mirantis.com>
Mon, 6 Apr 2015 13:22:27 +0000 (16:22 +0300)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/ceph.in

index e56ff85dd018a4a1552c8f57feed373023db60ea..f9c66d350e5b812cc534e60a37b293c6d8cf45be 100755 (executable)
@@ -545,7 +545,8 @@ def main():
             # for both:
             childargs = childargs[2:]
         else:
-            print >> sys.stderr, 'daemon requires at least 3 arguments'
+            print >> sys.stderr, '{0} requires at least {1} arguments'.format(
+                childargs[0], require_args)
             return errno.EINVAL
 
     if sockpath and daemon_perf: