Skip to content

Commit 5e37fc0

Browse files
committed
more user-friendly error message for some clang diagnostics
See #4455
1 parent 7f7d1fb commit 5e37fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const char *err_str(Error err) {
6464
case ErrorInvalidCpuFeatures: return "invalid CPU features";
6565
case ErrorInvalidLlvmCpuFeaturesFormat: return "invalid LLVM CPU features format";
6666
case ErrorUnknownApplicationBinaryInterface: return "unknown application binary interface";
67-
case ErrorASTUnitFailure: return "ASTUnit failure";
67+
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";
6868
}
6969
return "(invalid error)";
7070
}

0 commit comments

Comments
 (0)