diff --git a/src/bin/game/cli.rs b/src/bin/game/cli.rs index 001c08f..3c74d21 100644 --- a/src/bin/game/cli.rs +++ b/src/bin/game/cli.rs @@ -58,6 +58,10 @@ fn main() -> anyhow::Result<()> { println!("word length: must be {} long but is {}", game.length(), len); continue; } + GameError::WordNotInWordlist(w) => { + println!("bad word: word \"{w}\" is not in the wordlist",); + continue; + } _ => { return Err(err.into()); }