mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Update task error message
This commit is contained in:
parent
e12d398508
commit
cb6cca0646
1 changed files with 11 additions and 4 deletions
|
@ -43,10 +43,17 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
match r {
|
||||
Ok(_) => std::process::exit(0),
|
||||
Err(error) => {
|
||||
if error.to_string().to_lowercase().contains("no such file or directory") {
|
||||
eprintln!(
|
||||
"{}: Unable to find executable `task`: {}. Check that taskwarrior is install correctly and try again.",
|
||||
"[taskwarrior-tui error]", error
|
||||
);
|
||||
} else {
|
||||
eprintln!(
|
||||
"{}: {}. Please report as a github issue on https://github.com/kdheepak/taskwarrior-tui",
|
||||
"[taskwarrior-tui error]", error
|
||||
);
|
||||
}
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue