Skip to content

Commit 34f02cf

Browse files
committed
Attach error message as context
1 parent 8df66f7 commit 34f02cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/watch.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ pub fn watch(
102102
watch_state.render()?;
103103
}
104104
WatchEvent::NotifyErr(e) => {
105-
watch_state.into_writer().write_all(NOTIFY_ERR.as_bytes())?;
106-
return Err(Error::from(e));
105+
return Err(Error::from(e).context(NOTIFY_ERR));
107106
}
108107
WatchEvent::TerminalEventErr(e) => {
109108
return Err(Error::from(e).context("Terminal event listener failed"));

0 commit comments

Comments
 (0)