Author: Eric Christopher Date: 2020-06-19T23:34:30-07:00 New Revision: a1469914fd7542526693b07a26a0bdcaa27591a3
URL: https://github.com/llvm/llvm-project/commit/a1469914fd7542526693b07a26a0bdcaa27591a3 DIFF: https://github.com/llvm/llvm-project/commit/a1469914fd7542526693b07a26a0bdcaa27591a3.diff LOG: Update error to read a little better when an error occurs. Added: Modified: clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp b/clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp index 61754fe41bc1..babc207cb0e0 100644 --- a/clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp +++ b/clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp @@ -106,7 +106,7 @@ int main(int argc, const char **argv) { llvm::ErrorOr<std::vector<std::string>> AllowedPatterns = GetAllowedSymbolPatterns(); if (!AllowedPatterns) { - llvm::errs() << "Failed to open Allowed file " << AllowedFile << ". " + llvm::errs() << "Failed to open allow file " << AllowedFile << ". " << AllowedPatterns.getError().message() << "\n"; return 1; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits