summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-08-08 22:37:56 +0200
committermo8it <mo8it@proton.me>2024-08-08 22:37:56 +0200
commit34f02cf83d155fc5efee9970994d3a83ab58c284 (patch)
tree3ccbf8dbe6afd4da7e005d967aca3f1a0ffad41e /src/watch.rs
parent8df66f79918168617da9709c0edcfeb3ca0e53c8 (diff)
Attach error message as context
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 88a1230..c669030 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -102,8 +102,7 @@ pub fn watch(
watch_state.render()?;
}
WatchEvent::NotifyErr(e) => {
- watch_state.into_writer().write_all(NOTIFY_ERR.as_bytes())?;
- return Err(Error::from(e));
+ return Err(Error::from(e).context(NOTIFY_ERR));
}
WatchEvent::TerminalEventErr(e) => {
return Err(Error::from(e).context("Terminal event listener failed"));