From 06e36ac9917083695c795c37a65ed1255cbff9ee Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 23 Jan 2019 17:51:46 +0800 Subject: [PATCH] crimson/os: note missing coll/oid in exception Signed-off-by: Kefu Chai --- src/crimson/os/cyan_store.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crimson/os/cyan_store.cc b/src/crimson/os/cyan_store.cc index ab0a8288d07..2cac32c9c3b 100644 --- a/src/crimson/os/cyan_store.cc +++ b/src/crimson/os/cyan_store.cc @@ -132,11 +132,11 @@ seastar::future CyanStore::read(CollectionRef c, logger().info("{} {} {} {}~{}", __func__, c->cid, oid, offset, len); if (!c->exists) { - throw std::runtime_error("collection does not exist"); + throw std::runtime_error(fmt::format("collection does not exist: {}", c->cid)); } ObjectRef o = c->get_object(oid); if (!o) { - throw std::runtime_error("object does not exist"); + throw std::runtime_error(fmt::format("object does not exist: {}", oid)); } if (offset >= o->get_size()) return seastar::make_ready_future(); -- 2.39.5