Skip to content

Commit 4652e51

Browse files
authored
Fix error handling in command_helpers.rs
1 parent a61dacb commit 4652e51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/command_helpers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,10 @@ pub(crate) fn spawn_and_wait_for_output(cmd: &mut Command, cargo_output: &CargoO
354354
captured_cargo_output.output = OutputKind::Capture;
355355
spawn(cmd, &captured_cargo_output)?
356356
.wait_with_output()
357-
.map_err(|e| Err(Error::new(
357+
.map_err(|e| Error::new(
358358
ErrorKind::ToolExecError,
359359
format!("failed to wait on spawned child process `{cmd:?}`: {e}"),
360-
)))
360+
))
361361
}
362362

363363
pub(crate) fn run_output(cmd: &mut Command, cargo_output: &CargoOutput) -> Result<Vec<u8>, Error> {

0 commit comments

Comments
 (0)