From: David Zafman Date: Fri, 5 Dec 2014 00:00:40 +0000 (-0800) Subject: ceph_objectstore_tool: Remove extraneous endl on error throw messages X-Git-Tag: v0.91~40^2~3^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=32c832f0c62259a492d1c934c56ac165496763a0;p=ceph.git ceph_objectstore_tool: Remove extraneous endl on error throw messages Signed-off-by: David Zafman --- diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index ffe80afbb0910..d01627e900218 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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 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 {