Signed-off-by: Tao He <sighingnow@gmail.com>
This commit is contained in:
Tao He 2021-09-23 12:54:22 +08:00
parent 9729858da4
commit 1cd19888dd
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}