Skip to content

Commit 0fa92b1

Browse files
committed
[SwiftTool] Fix redirected stream for diagnostics handler
1 parent 03cfd34 commit 0fa92b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Commands/SwiftTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ public class SwiftTool<Options: ToolOptions> {
506506
func redirectStdoutToStderr() {
507507
self.shouldRedirectStdoutToStderr = true
508508
self.stdoutStream = Basic.stderrStream
509-
DiagnosticsEngineHandler.default.stdoutStream = Basic.stdoutStream
509+
DiagnosticsEngineHandler.default.stdoutStream = Basic.stderrStream
510510
}
511511

512512
/// Resolve the dependencies.

0 commit comments

Comments
 (0)