We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 530748b commit d0c2e94Copy full SHA for d0c2e94
1 file changed
parser/src/parsercontext.cpp
@@ -1,3 +1,4 @@
1
+#include <boost/filesystem/exception.hpp>
2
#include <fstream>
3
4
#include <boost/filesystem.hpp>
@@ -86,7 +87,7 @@ ParserContext::ParserContext(
86
87
88
if (!fileStream.good()) {
89
LOG(error) << "Failed to open modules file: " << modulesFilePath;
- exit(1);
90
+ return;
91
}
92
93
LOG(info) << "Processing modules file: " << modulesFilePath;
@@ -96,9 +97,9 @@ ParserContext::ParserContext(
96
97
try {
98
const fs::path p = fs::canonical(line);
99
moduleDirectories.push_back(p.string());
- } catch (...) {
100
+ } catch (fs::filesystem_error& err) {
101
LOG(error) << "Failed to process path from modules file: " << line;
102
+ LOG(error) << err.what();
103
104
105
0 commit comments