diff options
author | Sage Weil <sage@newdream.net> | 2011-10-26 14:56:25 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-27 09:26:06 -0700 |
commit | b3e1e3e1677da0edd1bb2e5866da1c787143c78f (patch) | |
tree | 9fd9108f53b041a39d16e10470c968b2ccaddb20 /src/rados.cc | |
parent | 11691a7111d7329a6d11e25ad19005e3824e9dbb (diff) | |
download | ceph-b3e1e3e1677da0edd1bb2e5866da1c787143c78f.tar.gz |
rados: improve error message
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/rados.cc')
-rw-r--r-- | src/rados.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rados.cc b/src/rados.cc index 2ac2d666ceb..d77aa2f4da0 100644 --- a/src/rados.cc +++ b/src/rados.cc @@ -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; |