mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-10 13:04:15 -04:00
Don't catch exceptions we can't really handle
This commit is contained in:
parent
fc406dff35
commit
4a80f539da
@ -388,9 +388,6 @@ scanner_<LoggerPolicy>::scan_tree(const std::string& path, progress& prog) {
|
|||||||
} catch (const boost::system::system_error& e) {
|
} catch (const boost::system::system_error& e) {
|
||||||
log_.error() << "error reading entry: " << e.what();
|
log_.error() << "error reading entry: " << e.what();
|
||||||
prog.errors++;
|
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) {
|
} catch (const boost::system::system_error& e) {
|
||||||
log_.error() << "cannot open directory: " << e.what();
|
log_.error() << "cannot open directory: " << e.what();
|
||||||
prog.errors++;
|
prog.errors++;
|
||||||
} catch (const std::exception& e) {
|
|
||||||
log_.error() << folly::exceptionStr(e.what());
|
|
||||||
prog.errors++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user