mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
DiagnosticEngine: Print the ID of the wrapped, not wrapper, diagnostic
This commit is contained in:
@@ -1086,7 +1086,7 @@ public:
|
||||
// Emit a specific unavailable message when we know why a decl can't be
|
||||
// exposed, or a generic message otherwise.
|
||||
auto diagString =
|
||||
M.getASTContext().Diags.diagnosticStringFor(diag.getID());
|
||||
M.getASTContext().Diags.getFormatStringForDiagnostic(diag.getID());
|
||||
DiagnosticEngine::formatDiagnosticText(os, diagString, diag.getArgs(),
|
||||
DiagnosticFormatOptions());
|
||||
os << "\");\n";
|
||||
|
||||
Reference in New Issue
Block a user