generated from PlexSheep/rs-base
cligame: better error when word is not in wordlist
This commit is contained in:
parent
2e46abbee0
commit
84d4afdb18
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue