]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: Improve error message for --type option
authorDavid Zafman <dzafman@redhat.com>
Mon, 4 Jan 2016 19:00:27 +0000 (11:00 -0800)
committerDavid Zafman <dzafman@redhat.com>
Mon, 4 Jan 2016 19:00:27 +0000 (11:00 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/ceph_objectstore_tool.py
src/tools/ceph_objectstore_tool.cc

index 1a9df9d12aa1b65c3f00a9d4e8844aa028e8ed72..0d7f4a8bebe2c6a60373e8fa17c183e791b67478 100755 (executable)
@@ -888,7 +888,7 @@ def main(argv):
 
     # Specify a bad --type
     cmd = (CFSD_PREFIX + "--type foobar --op list --pgid {pg}").format(osd=ONEOSD, pg=ONEPG)
-    ERRORS += test_failure(cmd, "Must provide --type (filestore, memstore, keyvaluestore)")
+    ERRORS += test_failure(cmd, "Need a valid --type e.g. filestore, memstore, keyvaluestore")
 
     # Don't specify a data-path
     cmd = "./ceph-objectstore-tool --journal-path {dir}/{osd}.journal --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
index 5502c84b880c908317b30600b85416f678d3268c..1988c80b6b3544d7dae0d9c1a562d43f2708c8b9 100644 (file)
@@ -2462,7 +2462,7 @@ int main(int argc, char **argv)
 
   ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
   if (fs == NULL) {
-    cerr << "Must provide --type (filestore, memstore, keyvaluestore)" << std::endl;
+    cerr << "Need a valid --type e.g. filestore, memstore, keyvaluestore" << std::endl;
     if (type == "keyvaluestore") {
       cerr << "Add \"keyvaluestore\" to "
            << "enable_experimental_unrecoverable_data_corrupting_features"