mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 06:50:09 +01:00
chore: probably smaller error msg
This commit is contained in:
parent
a6f9d5b39b
commit
551edc2828
1 changed files with 3 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ fn main() {
|
||||||
let mut last_command = shell::last_command(&shell);
|
let mut last_command = shell::last_command(&shell);
|
||||||
last_command = shell::expand_alias(&shell, &last_command);
|
last_command = shell::expand_alias(&shell, &last_command);
|
||||||
let mut error_msg = command_output(&shell, &last_command);
|
let mut error_msg = command_output(&shell, &last_command);
|
||||||
|
error_msg = error_msg.split_whitespace().collect::<Vec<&str>>().join(" ");
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let suggestion = {
|
let suggestion = {
|
||||||
let command = suggestions::suggest_command(&shell, &last_command, &error_msg);
|
let command = suggestions::suggest_command(&shell, &last_command, &error_msg);
|
||||||
|
|
@ -91,6 +93,7 @@ fn main() {
|
||||||
} else {
|
} else {
|
||||||
last_command = suggestion;
|
last_command = suggestion;
|
||||||
error_msg = execution.err().unwrap();
|
error_msg = execution.err().unwrap();
|
||||||
|
error_msg = error_msg.split_whitespace().collect::<Vec<&str>>().join(" ");
|
||||||
|
|
||||||
let retry_message = format!("{}...", t!("retry"));
|
let retry_message = format!("{}...", t!("retry"));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue