We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 893f271 commit c8dde33Copy full SHA for c8dde33
1 file changed
util/src/parserutil.cpp
@@ -50,17 +50,17 @@ bool iterateDirectoryRecursive(
50
51
fs::path p(path_);
52
53
- try
+ boost::system::error_code ec;
54
+ auto target = fs::canonical(p, ec);
55
+ if (ec)
56
{
- if (!fs::exists(p))
- {
57
- LOG(warning) << "Not found: " << p;
58
- return true;
59
- }
+ LOG(warning) << p << ": " << ec.message();
+ return true;
60
}
61
- catch (const std::exception& ex_)
+
+ if (!fs::exists(p))
62
63
- LOG(warning) << "Parser threw an exception: " << ex_.what();
+ LOG(warning) << "Not found: " << p;
64
return true;
65
66
0 commit comments