Don't catch exceptions we can't really handle

This commit is contained in:
Marcus Holland-Moritz 2020-12-05 22:44:02 +01:00
parent fc406dff35
commit 4a80f539da

View File

@ -388,9 +388,6 @@ scanner_<LoggerPolicy>::scan_tree(const std::string& path, progress& prog) {
} catch (const boost::system::system_error& e) {
log_.error() << "error reading entry: " << e.what();
prog.errors++;
} catch (const std::exception& e) {
log_.error() << folly::exceptionStr(e.what());
prog.errors++;
}
}
@ -400,9 +397,6 @@ scanner_<LoggerPolicy>::scan_tree(const std::string& path, progress& prog) {
} catch (const boost::system::system_error& e) {
log_.error() << "cannot open directory: " << e.what();
prog.errors++;
} catch (const std::exception& e) {
log_.error() << folly::exceptionStr(e.what());
prog.errors++;
}
}