diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/watch.rs | 3 | ||||
| -rw-r--r-- | src/watch/state.rs | 5 |
2 files changed, 6 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")); diff --git a/src/watch/state.rs b/src/watch/state.rs index 46f48d9..abfff7a 100644 --- a/src/watch/state.rs +++ b/src/watch/state.rs @@ -51,6 +51,11 @@ impl<'a> WatchState<'a> { pub fn run_current_exercise(&mut self) -> Result<()> { self.show_hint = false; + writeln!( + self.writer, + "\nChecking the exercise `{}`. Please wait…", + self.app_state.current_exercise().name, + )?; let success = self .app_state .current_exercise() |
