mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 15:00:15 +01:00
fix: not output when sucessfully executed the command
This commit is contained in:
parent
6a1b7fb246
commit
a201c18c01
2 changed files with 10 additions and 5 deletions
|
|
@ -46,11 +46,15 @@ fn main() {
|
|||
if execution.is_ok() {
|
||||
return;
|
||||
} else {
|
||||
last_command = corrected_command;
|
||||
let msg = execution.err().unwrap();
|
||||
error_msg = msg.to_lowercase();
|
||||
|
||||
let retry_message =
|
||||
format!("{}", "Looking for new suggestion...".cyan().bold());
|
||||
|
||||
println!("\n{} {}", "ERROR:".red().bold(), msg);
|
||||
println!("\n{}\n", retry_message);
|
||||
last_command = corrected_command;
|
||||
error_msg = execution.err().unwrap();
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue