Commit 296e1199 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] use terminate() instead of assert(false) for forceful termination

parent 2ce8ea31
......@@ -36,6 +36,7 @@
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
#include <exception>
#include <list>
#include <utility>
......@@ -406,10 +407,10 @@ DataSrcClientsBuilderBase<MutexType, CondVarType>::run() {
// We explicitly catch exceptions so we can log it as soon as possible.
LOG_FATAL(auth_logger, AUTH_DATASRC_CLIENTS_BUILDER_FAILED).
arg(ex.what());
assert(false);
std::terminate();
} catch (...) {
LOG_FATAL(auth_logger, AUTH_DATASRC_CLIENTS_BUILDER_FAILED_UNEXPECTED);
assert(false);
std::terminate();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment