From 924cf2f7e39c74aec51ef7eb0c2732c7c5e4b04b Mon Sep 17 00:00:00 2001 From: Honza Dvorsky Date: Fri, 25 Oct 2024 20:14:30 +0200 Subject: [PATCH] Fix printing to stderr - add a missing newline (#657) --- Sources/_OpenAPIGeneratorCore/Diagnostics.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/_OpenAPIGeneratorCore/Diagnostics.swift b/Sources/_OpenAPIGeneratorCore/Diagnostics.swift index f85c991d..08b561a0 100644 --- a/Sources/_OpenAPIGeneratorCore/Diagnostics.swift +++ b/Sources/_OpenAPIGeneratorCore/Diagnostics.swift @@ -322,7 +322,7 @@ public struct StdErrPrintingDiagnosticCollector: DiagnosticCollector, Sendable { /// Emits a diagnostic message to standard error. /// /// - Parameter diagnostic: The diagnostic message to emit. - public func emit(_ diagnostic: Diagnostic) { stdErrHandle.write(diagnostic.description) } + public func emit(_ diagnostic: Diagnostic) { stdErrHandle.write(diagnostic.description + "\n") } } /// A no-op collector, silently ignores all diagnostics.