Skip to content

Commit fa956eb

Browse files
committed
Fix printing to stderr - add a missing newline
1 parent ecdaa49 commit fa956eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/_OpenAPIGeneratorCore/Diagnostics.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ 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) {
326+
stdErrHandle.write(diagnostic.description + "\n")
327+
}
326328
}
327329

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

0 commit comments

Comments
 (0)