From c22005eda146e6be76033f2b63127ae03b96301f Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 23 May 2015 10:04:48 +0200 Subject: [PATCH] catching all the exceptions --- src/main/main.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/main.cc b/src/main/main.cc index a26e8b56a..258b422a2 100644 --- a/src/main/main.cc +++ b/src/main/main.cc @@ -176,14 +176,14 @@ int main(int argc, char** argv) { LOG(FATAL) << "Boost exception: " << boost::diagnostic_information(e); } - catch( boost::lock_error & le ) - { - LOG(FATAL) << "Lock error exception: " << boost::diagnostic_information(le); - } catch(std::exception const& ex) { LOG(FATAL) << "STD exception: " << ex.what(); } + catch(...) + { + LOG(INFO) << "Unexpected catch"; + } // report the elapsed time gettimeofday(&tv, NULL); long long int end = tv.tv_sec * 1000000 + tv.tv_usec;