Change-Id: I0a9a165a82367d911706702eaba162d60717c4f2
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
initial = true;
bpo::notify(opt_map);
uid = opt_map["uid"].as<int>();
- } catch (const boost::exception& error) {
- std::cerr << "Exception occured: " << boost::diagnostic_information(error)
- << std::endl;
+ } catch (...) {
+ std::cerr << "Exception occurred: "
+ << boost::current_exception_diagnostic_information() << std::endl;
+ return -1;
}
RemoveOldDatabases(uid);
LOG(ERROR) << "Failed to recover installation: " << entry.second;
}
}
- } catch (const bf::filesystem_error& e) {
- LOG(ERROR) << "Exception occurred: " << e.what();
+ } catch (...) {
+ std::cerr << "Exception occurred: "
+ << boost::current_exception_diagnostic_information() << std::endl;
return -1;
}
return 0;