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())
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.spawn()
|
.spawn()?;
|
||||||
.expect("Failed to spawn child process");
|
|
||||||
let stdin = child.stdin.as_mut().expect("Failed to open stdin");
|
let stdin = child.stdin.as_mut().expect("Failed to open stdin");
|
||||||
stdin
|
stdin.write_all(input).await?;
|
||||||
.write_all(input)
|
|
||||||
.await
|
|
||||||
.expect("Failed to write to stdin");
|
|
||||||
let res = child.wait_with_output().await;
|
let res = child.wait_with_output().await;
|
||||||
//println!("{:?}", res);
|
//println!("{:?}", res);
|
||||||
#[allow(clippy::let_and_return)]
|
#[allow(clippy::let_and_return)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue