command : message d'erreur une variable
This commit is contained in:
parent
ea9eb49697
commit
238d37dde3
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue