From 1cd19888dd5b41737b99798337e184e1acfa3b0d Mon Sep 17 00:00:00 2001 From: Tao He Date: Thu, 23 Sep 2021 12:54:22 +0800 Subject: [PATCH] Fixes. Signed-off-by: Tao He --- tst/MemLeakTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tst/MemLeakTest.cpp b/tst/MemLeakTest.cpp index fadf58a..7cebe0b 100644 --- a/tst/MemLeakTest.cpp +++ b/tst/MemLeakTest.cpp @@ -52,7 +52,7 @@ DistributedLock::DistributedLock(const std::string &lock_name, } } } catch (std::exception &e) { - throw e; + std::cerr << "failed to construct: " << e.what() << std::endl; } } @@ -67,7 +67,7 @@ DistributedLock::~DistributedLock() noexcept { std::cout << resp.error_code() << std::endl; } } catch (std::exception &e) { - throw e; + std::cerr << "failed to destruct: " << e.what() << std::endl; } }