Skip to content

Commit f76fc26

Browse files
committed
fix error handling
1 parent 2927ef2 commit f76fc26

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ int clangTidyMain(int argc, const char **argv) {
564564
: llvm::cl::TokenizeGNUCommandLine;
565565
llvm::cl::ExpansionContext ECtx(Alloc, Tokenizer);
566566
if (llvm::Error Err = ECtx.expandResponseFiles(Args)) {
567-
llvm::WithColor::error() << Err << "\n";
567+
llvm::WithColor::error() << llvm::toString(std::move(Err)) << "\n";
568568
return 1;
569569
}
570570
argc = static_cast<int>(Args.size());
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// RUN: echo @%t.param > %t.param && not clang-tidy %s @%t.param -- 2>&1 | FileCheck %s
2+
3+
// CHECK: recursive expansion of

0 commit comments

Comments
 (0)