summaryrefslogtreecommitdiff
path: root/src/watch
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-08-08 22:48:53 +0200
committermo8it <mo8it@proton.me>2024-08-08 22:48:53 +0200
commit4ce8667b9d878dc48fafb665699a5fc71c190972 (patch)
treea3eb04e02e09e4699419d07b912bb27155e2e0b9 /src/watch
parent0785b2419277bc1cbc7f55c123f8e248759f4766 (diff)
Show the exercise name in the waiting message
Diffstat (limited to 'src/watch')
-rw-r--r--src/watch/state.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/watch/state.rs b/src/watch/state.rs
index 45fbd9e..abfff7a 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()