From 5e37fc0746a75ed319fc57ae62d8cc966382c592 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 16 Feb 2020 01:45:48 -0500 Subject: [PATCH] more user-friendly error message for some clang diagnostics See #4455 --- src/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.cpp b/src/error.cpp index 08575d15ec..871b6b9e35 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -64,7 +64,7 @@ const char *err_str(Error err) { case ErrorInvalidCpuFeatures: return "invalid CPU features"; case ErrorInvalidLlvmCpuFeaturesFormat: return "invalid LLVM CPU features format"; case ErrorUnknownApplicationBinaryInterface: return "unknown application binary interface"; - case ErrorASTUnitFailure: return "ASTUnit failure"; + case ErrorASTUnitFailure: return "compiler bug: clang encountered a compile error, but the libclang API does not expose the error. See https://github.com/ziglang/zig/issues/4455 for more details"; } return "(invalid error)"; }