Skip to content

Commit 924cf2f

Browse files
authored
Fix printing to stderr - add a missing newline (#657)
1 parent 9727261 commit 924cf2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/_OpenAPIGeneratorCore/Diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public struct StdErrPrintingDiagnosticCollector: DiagnosticCollector, Sendable {
322322
/// Emits a diagnostic message to standard error.
323323
///
324324
/// - Parameter diagnostic: The diagnostic message to emit.
325-
public func emit(_ diagnostic: Diagnostic) { stdErrHandle.write(diagnostic.description) }
325+
public func emit(_ diagnostic: Diagnostic) { stdErrHandle.write(diagnostic.description + "\n") }
326326
}
327327

328328
/// A no-op collector, silently ignores all diagnostics.

0 commit comments

Comments
 (0)