Skip to content
Prev Previous commit
Next Next commit
Check timew stop/continue exit code
  • Loading branch information
Mice7R committed Feb 12, 2024
commit 62bc9ce99cb37de4bdded6ce8361c0fff28d6345
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")
}