Skip to content

Commit 4ce8667

Browse files
committed
Show the exercise name in the waiting message
1 parent 0785b24 commit 4ce8667

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/watch/state.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ impl<'a> WatchState<'a> {
5151
pub fn run_current_exercise(&mut self) -> Result<()> {
5252
self.show_hint = false;
5353

54-
self.writer
55-
.write_all(b"\nChecking the exercise, please wait...")?;
54+
writeln!(
55+
self.writer,
56+
"\nChecking the exercise `{}`. Please wait…",
57+
self.app_state.current_exercise().name,
58+
)?;
5659
let success = self
5760
.app_state
5861
.current_exercise()

0 commit comments

Comments
 (0)