]> git.apps.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)
committerLoic Dachary <ldachary@redhat.com>
Fri, 5 Dec 2014 20:09:42 +0000 (21:09 +0100)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/tools/ceph_objectstore_tool.cc

index ffe80afbb0910859ca8f3f4968d7f2d0346ec554..d01627e900218c8769714f5a5d50666f4953d99f 100644 (file)
@@ -2329,8 +2329,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();
@@ -2343,7 +2342,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();
@@ -2355,7 +2354,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 {