cligame: better error when word is not in wordlist

This commit is contained in:
Christoph J. Scherr 2024-04-04 20:47:33 +02:00
parent 2e46abbee0
commit 84d4afdb18
Signed by: PlexSheep
GPG Key ID: 7CDD0B14851A08EF
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}