command : message d'erreur une variable

This commit is contained in:
Ahurac 2024-04-10 10:21:55 +02:00
parent ea9eb49697
commit 238d37dde3

View file

@ -58,7 +58,8 @@ impl Command for UnixProgram {
exit_code
} else {
error::print_error(format!("{}: command not found", program));
let message = format!("{}: command not found", &program);
error::print_error(message);
ExitCode::new(127)
}
}