[NFC] [clangd] [Modules] Leave more log for failing cases (#187448)
This is useful for users and developers to understand what happens.
This commit is contained in:
parent
bdfd9725af
commit
ca5e4bcc57
@ -123,6 +123,10 @@ ModuleDependencyScanner::scan(PathRef FilePath,
|
||||
|
||||
if (!ScanningResult) {
|
||||
elog("Scanning modules dependencies for {0} failed: {1}", FilePath, S);
|
||||
std::string Cmdline;
|
||||
for (auto &Arg : Cmd.CommandLine)
|
||||
Cmdline += Arg + " ";
|
||||
elog("The command line the scanning tool use is: {0}", Cmdline);
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user