Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/openshell-cli/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3108,6 +3108,7 @@ async fn sandbox_exec_interactive_grpc(

let mut exit_code = 0i32;
let stdout = std::io::stdout();
let stderr = std::io::stderr();

while let Some(event) = stream.next().await {
let event = event.into_diagnostic()?;
Expand All @@ -3118,7 +3119,7 @@ async fn sandbox_exec_interactive_grpc(
handle.flush().into_diagnostic()?;
}
Some(exec_sandbox_event::Payload::Stderr(err)) => {
let mut handle = stdout.lock();
let mut handle = stderr.lock();
handle.write_all(&err.data).into_diagnostic()?;
handle.flush().into_diagnostic()?;
}
Expand Down
Loading