From 4a80f539da97078038f429cbe3b944539d412668 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Sat, 5 Dec 2020 22:44:02 +0100 Subject: [PATCH] Don't catch exceptions we can't really handle --- src/dwarfs/scanner.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dwarfs/scanner.cpp b/src/dwarfs/scanner.cpp index 73cc4359..3ef85df5 100644 --- a/src/dwarfs/scanner.cpp +++ b/src/dwarfs/scanner.cpp @@ -388,9 +388,6 @@ scanner_::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_::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++; } }