cli: correct docker message (#1243)

This commit is contained in:
Leofis G 2022-01-08 00:00:57 +08:00 committed by GitHub
parent 97378eb8a7
commit e2b928161e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1089,7 +1089,7 @@ 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())
@ -1097,7 +1097,7 @@ fn docker_cleanup(container_name: &str, target_dir: &Path) -> Result<()> {
.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(())