mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Better error message for configuration
This commit is contained in:
parent
40b44f2f54
commit
301f149b3f
1 changed files with 9 additions and 2 deletions
|
@ -284,9 +284,16 @@ impl Config {
|
|||
.unwrap();
|
||||
|
||||
if !output.status.success() {
|
||||
let output = Command::new("task")
|
||||
.arg("diagnostics")
|
||||
.output()
|
||||
.context("Unable to run `task diagnostics`.")
|
||||
.unwrap();
|
||||
panic!(
|
||||
"Unable to run `task show {}`. Please check your configuration or open a issue on github.",
|
||||
config
|
||||
"Unable to run `task show {}`.\n{}\n{}\nPlease check your configuration or open a issue on github.",
|
||||
config,
|
||||
String::from_utf8_lossy(&output.stdout),
|
||||
String::from_utf8_lossy(&output.stderr),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue