Author: Haojian Wu Date: 2022-07-18T13:23:18+02:00 New Revision: 098488e09a320a09bebcac2bac4c9c12bbe6db76
URL: https://github.com/llvm/llvm-project/commit/098488e09a320a09bebcac2bac4c9c12bbe6db76 DIFF: https://github.com/llvm/llvm-project/commit/098488e09a320a09bebcac2bac4c9c12bbe6db76.diff LOG: [pseduo] More precise on printing the error message, NFC Added: Modified: clang-tools-extra/pseudo/tool/ClangPseudo.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/pseudo/tool/ClangPseudo.cpp b/clang-tools-extra/pseudo/tool/ClangPseudo.cpp index b50be02731e0f..fc57781d5cbbc 100644 --- a/clang-tools-extra/pseudo/tool/ClangPseudo.cpp +++ b/clang-tools-extra/pseudo/tool/ClangPseudo.cpp @@ -53,7 +53,7 @@ static std::string readOrDie(llvm::StringRef Path) { llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> Text = llvm::MemoryBuffer::getFile(Path); if (std::error_code EC = Text.getError()) { - llvm::errs() << "Error: can't read grammar file '" << Path + llvm::errs() << "Error: can't read file '" << Path << "': " << EC.message() << "\n"; ::exit(1); } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits