From 4ce8667b9d878dc48fafb665699a5fc71c190972 Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 8 Aug 2024 22:48:53 +0200 Subject: [PATCH] Show the exercise name in the waiting message --- src/watch/state.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/watch/state.rs b/src/watch/state.rs index 45fbd9e0..abfff7ac 100644 --- a/src/watch/state.rs +++ b/src/watch/state.rs @@ -51,8 +51,11 @@ impl<'a> WatchState<'a> { pub fn run_current_exercise(&mut self) -> Result<()> { self.show_hint = false; - self.writer - .write_all(b"\nChecking the exercise, please wait...")?; + writeln!( + self.writer, + "\nChecking the exercise `{}`. Please wait…", + self.app_state.current_exercise().name, + )?; let success = self .app_state .current_exercise()