Skip to content

Commit

Permalink
Check timew stop/continue exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mice7R committed Apr 27, 2023
1 parent 5f8ae20 commit 7e74be2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/blocks/timewarrior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ async fn stop_continue() -> Result<()> {
.error("Error spawning timew")?
.wait()
.await
.error("Error executing stop/continue")
.map(|_| ())
.error("Error executing stop/continue")?
.success()
.then_some(())
.error("timew exited with non-zero value when attempting to stop/contniue")
}

0 comments on commit 7e74be2

Please # to comment.