Skip to content

Commit

Permalink
perf: cancel print stdout error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhazhazhu committed Feb 27, 2024
1 parent 4824707 commit 601a517
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion src/bin/nr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ fn main() {
}
}
None => {
println!("hi");
storage.last_run_command = Some(args[0].to_string());
dump(&storage).unwrap();
}
Expand Down
8 changes: 1 addition & 7 deletions src/runner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,7 @@ pub fn execa_command(agent: &str, args: Option<Vec<String>>) -> Result<(), io::E
}
}

let status = command.wait()?;
if !status.success() {
return Err(io::Error::new(
io::ErrorKind::Other,
"Command execution failed",
));
}
command.wait()?;

Ok(())
}

0 comments on commit 601a517

Please sign in to comment.