forked from OSchip/llvm-project
[clang-tidy] Don't print a message if there's no error.
llvm-svn: 221272
This commit is contained in:
parent
3c4c9fed08
commit
ddf9767a49
|
@ -235,8 +235,9 @@ FileOptionsProvider::TryReadConfigFile(StringRef Directory) {
|
|||
llvm::ErrorOr<ClangTidyOptions> ParsedOptions =
|
||||
ConfigHandler.second((*Text)->getBuffer());
|
||||
if (!ParsedOptions) {
|
||||
llvm::errs() << "Error parsing " << ConfigFile << ": "
|
||||
<< ParsedOptions.getError().message() << "\n";
|
||||
if (ParsedOptions.getError())
|
||||
llvm::errs() << "Error parsing " << ConfigFile << ": "
|
||||
<< ParsedOptions.getError().message() << "\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue