]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-objectstore-tool: simplify error message
authorSage Weil <sage@redhat.com>
Thu, 7 Jan 2016 18:04:09 +0000 (13:04 -0500)
committerSage Weil <sage@redhat.com>
Wed, 27 Jan 2016 19:06:14 +0000 (14:06 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/ceph_objectstore_tool.py
src/tools/ceph_objectstore_tool.cc

index e79857a109cf73cd91e515b5734c8fba0115c750..b34c59a807fc82e333b2f6334d74bd8462e39037 100755 (executable)
@@ -889,7 +889,7 @@ def main(argv):
     # Specify a bad --type
     os.mkdir(OSDDIR + "/fakeosd")
     cmd = ("./ceph-objectstore-tool --data-path " + OSDDIR + "/{osd} --type foobar --op list --pgid {pg}").format(osd="fakeosd", pg=ONEPG)
-    ERRORS += test_failure(cmd, "Need a valid --type e.g. filestore, memstore")
+    ERRORS += test_failure(cmd, "Unable to create store of type foobar")
 
     # Don't specify a data-path
     cmd = "./ceph-objectstore-tool --type memstore --op list --pgid {pg}".format(dir=OSDDIR, osd=ONEOSD, pg=ONEPG)
index dd8a7470da355377fafa42d0d2e4e22f539d2aed..3b1b093e325c294ef67c5401931c9d6d7fa07dd8 100644 (file)
@@ -2467,7 +2467,7 @@ int main(int argc, char **argv)
 
   ObjectStore *fs = ObjectStore::create(g_ceph_context, type, dpath, jpath, flags);
   if (fs == NULL) {
-    cerr << "Need a valid --type e.g. filestore, memstore" << std::endl;
+    cerr << "Unable to create store of type " << type << std::endl;
     myexit(1);
   }