zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5e37fc0746a75ed319fc57ae62d8cc966382c592 (tree)
parent 7f7d1fbe5ad16fd41eeaeb20e3e71a39bdd3f991
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sun, 16 Feb 2020 01:45:48 -0500

more user-friendly error message for some clang diagnostics

See #4455

Diffstat:
Msrc/error.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)"; }