]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_objectstore_tool: Remove extraneous endl on error throw messages
authorDavid Zafman <dzafman@redhat.com>
Fri, 5 Dec 2014 00:00:40 +0000 (16:00 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Mar 2015 19:20:58 +0000 (11:20 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 32c832f0c62259a492d1c934c56ac165496763a0)

src/tools/ceph_objectstore_tool.cc

index edc90120ba5c6d5b579be7297595631d57eb81c5..6108fdac441d59c9234f34c1e498473f657f91b5 100644 (file)
@@ -2323,8 +2323,7 @@ int main(int argc, char **argv)
          if (lookup.size() != 1) {
            stringstream ss;
            ss << "expected a single object named " << object
-              << " but got " << lookup.size() << " instead"
-              << std::endl;
+              << " but got " << lookup.size() << " instead";
            throw std::runtime_error(ss.str());
          }
          pair<coll_t, ghobject_t> found = lookup.pop();
@@ -2337,7 +2336,7 @@ int main(int argc, char **argv)
        if (v.type() != json_spirit::array_type) {
          ss << "object '" << object
             << "' must be a JSON array but is of type "
-            << v.type() << " instead" << std::endl;
+            << v.type() << " instead";
          throw std::runtime_error(ss.str());
        }
        json_spirit::Array array = v.get_array();
@@ -2349,7 +2348,7 @@ int main(int argc, char **argv)
          if (object_pgid != pgid) {
            ss << "object '" << object
               << "' has a pgid different from the --pgid="
-              << pgidstr << " option" << std::endl;
+              << pgidstr << " option";
            throw std::runtime_error(ss.str());
          }
        } else {