mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
[clang-tidy] Don't print a message if there's no error.
llvm-svn: 221272
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user