mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
Fix output showing when background task errors
This commit is contained in:
parent
f7d751a7f6
commit
468c772467
1 changed files with 3 additions and 9 deletions
12
src/app.rs
12
src/app.rs
|
@ -1483,15 +1483,9 @@ impl TaskwarriorTuiApp {
|
|||
for s in cmd.iter().skip(1) {
|
||||
command.arg(&s);
|
||||
}
|
||||
if let Ok(child) = command.spawn() {
|
||||
let output = child.wait_with_output();
|
||||
match output {
|
||||
Ok(o) => {
|
||||
if !o.status.success() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Err(s) => break,
|
||||
if let Ok(output) = command.output() {
|
||||
if !output.status.success() {
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue