Emit Errors in CommandRunner
This commit is contained in:
parent
d71a676c2f
commit
b32b0eaedc
1 changed files with 2 additions and 6 deletions
|
|
@ -63,13 +63,9 @@ impl CommandRunner for StdCommandRunner {
|
|||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
.stderr(Stdio::piped())
|
||||
.spawn()
|
||||
.expect("Failed to spawn child process");
|
||||
.spawn()?;
|
||||
let stdin = child.stdin.as_mut().expect("Failed to open stdin");
|
||||
stdin
|
||||
.write_all(input)
|
||||
.await
|
||||
.expect("Failed to write to stdin");
|
||||
stdin.write_all(input).await?;
|
||||
let res = child.wait_with_output().await;
|
||||
//println!("{:?}", res);
|
||||
#[allow(clippy::let_and_return)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue