Skip to content

Commit e9e25cc

Browse files
authored
Merge pull request swiftlang#68323 from compnerd/workaround
ASTGen: add a workaround for CSC conformance visibility
2 parents 9c7639d + 5d0c5a6 commit e9e25cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/ASTGen/Sources/ASTGen/Macros.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ enum ASTGenMacroDiagnostic: DiagnosticMessage, FixItMessage {
186186
var message: String {
187187
switch self {
188188
case .thrownError(let error):
189-
return String(describing: error)
189+
if let err = error as? PluginError {
190+
return err.description
191+
} else {
192+
return String(describing: error)
193+
}
190194

191195
case .oldStyleExternalMacro:
192196
return "external macro definitions are now written using #externalMacro"

0 commit comments

Comments
 (0)