Skip to content

Commit 7e74be2

Browse files
committed
Check timew stop/continue exit code
1 parent 5f8ae20 commit 7e74be2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/blocks/timewarrior.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ async fn stop_continue() -> Result<()> {
198198
.error("Error spawning timew")?
199199
.wait()
200200
.await
201-
.error("Error executing stop/continue")
202-
.map(|_| ())
201+
.error("Error executing stop/continue")?
202+
.success()
203+
.then_some(())
204+
.error("timew exited with non-zero value when attempting to stop/contniue")
203205
}

0 commit comments

Comments
 (0)