mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Expand tilde and show error message
This commit is contained in:
parent
d351b86c30
commit
d52699abe7
1 changed files with 2 additions and 4 deletions
|
@ -1097,6 +1097,7 @@ impl TTApp {
|
|||
}
|
||||
|
||||
let shell = format!("{} {}", shell, task_uuid);
|
||||
let shell = shellexpand::tilde(&shell).into_owned();
|
||||
match shlex::split(&shell) {
|
||||
Some(cmd) => {
|
||||
let mut command = Command::new(&cmd[0]);
|
||||
|
@ -1116,10 +1117,7 @@ impl TTApp {
|
|||
))
|
||||
}
|
||||
}
|
||||
Err(_) => Err(format!(
|
||||
"Cannot run `{}`. Check documentation for more information",
|
||||
shell,
|
||||
)),
|
||||
Err(s) => Err(format!("`{}` failed: {}", shell, s,)),
|
||||
}
|
||||
}
|
||||
None => Err(format!("Unable to run `{}`. Cannot shlex split `{}`", shell, shell)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue