Skip to content

Commit

Permalink
Fix printing to stderr - add a missing newline (apple#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 authored Oct 25, 2024
1 parent 9727261 commit 924cf2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/_OpenAPIGeneratorCore/Diagnostics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 924cf2f

Please sign in to comment.