Skip to content

Commit 7704b83

Browse files
sortiecommit-bot@chromium.org
authored andcommitted
[nnbd] Fix Process.stderr providing stdout instead in NNBD dart:io.
Bug: #40040 Change-Id: Ia318180de1b1614502671c6bf4051d79ae7808f3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/134327 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Jonas Termansen <[email protected]>
1 parent a01dda1 commit 7704b83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk_nnbd/lib/_internal/vm/bin/process_patch.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,12 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
507507
_NativeSocket exitHandler) native "Process_Wait";
508508

509509
Stream<List<int>> get stdout =>
510-
_stdout ?? (throw StateError("Process is detached"));
510+
_stdout ?? (throw StateError("stdio is not connected"));
511511

512512
Stream<List<int>> get stderr =>
513-
_stdout ?? (throw StateError("Process is detached"));
513+
_stderr ?? (throw StateError("stdio is not connected"));
514514

515-
IOSink get stdin => _stdin ?? (throw StateError("Process is detached"));
515+
IOSink get stdin => _stdin ?? (throw StateError("stdio is not connected"));
516516

517517
Future<int> get exitCode =>
518518
_exitCode?.future ?? (throw StateError("Process is detached"));

0 commit comments

Comments
 (0)