Skip to content

Commit

Permalink
cli: correct docker message (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofisG committed Jan 7, 2022
1 parent 97378eb commit e2b9281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/lib.rs
Expand Up @@ -1089,15 +1089,15 @@ fn docker_cleanup(container_name: &str, target_dir: &Path) -> Result<()> {
docker_exec(container_name, &["rm", "-rf", target_dir.to_str().unwrap()])?;

// Remove the docker image.
println!("Removing the docker image");
println!("Removing the docker container");
let exit = std::process::Command::new("docker")
.args(&["rm", "-f", container_name])
.stdout(Stdio::inherit())
.stderr(Stdio::inherit())
.output()
.map_err(|e| anyhow::format_err!("{}", e.to_string()))?;
if !exit.status.success() {
println!("Unable to remove docker container");
println!("Unable to remove the docker container");
std::process::exit(exit.status.code().unwrap_or(1));
}
Ok(())
Expand Down

0 comments on commit e2b9281

Please sign in to comment.