Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4efd0db6fe47e21da0cd84380a974bb247f5a3be
int main() {
uid_t uid = getuid();
std::vector<std::pair<std::string, std::string>> list;
- list = SearchRecoveryFiles(uid);
+ try {
+ list = SearchRecoveryFiles(uid);
+ } catch (...) {
+ LOG(WARNING) << "Exception occurred: "
+ << boost::current_exception_diagnostic_information();
+ return 0;
+ }
for (auto entry : list) {
if (!RequestRecoveryService(uid, entry.first.c_str(),
entry.second.c_str()))