]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: improve error message
authorSage Weil <sage@newdream.net>
Wed, 26 Oct 2011 21:56:25 +0000 (14:56 -0700)
committerSage Weil <sage@newdream.net>
Thu, 27 Oct 2011 16:26:06 +0000 (09:26 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/rados.cc

index 2ac2d666cebc46baa61a78172a8956742b291f60..d77aa2f4da037b330b2e75d242b9fea668416d4f 100644 (file)
@@ -1202,8 +1202,10 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
     if (ret != 0)
       cerr << "error calling notify: " << ret << std::endl;
   } else if (strcmp(nargs[0], "load-gen") == 0) {
-    if (!pool_name)
+    if (!pool_name) {
+      cerr << "error: must specify pool" << std::endl;
       usage_exit();
+    }
     LoadGen lg(&rados);
     if (min_obj_len)
       lg.min_obj_len = min_obj_len;