Merge pull request 'meilleurs messages d'erreur' (#6) from gaelg/error-messages into french
Reviewed-on: #6
This commit is contained in:
@@ -115,7 +115,7 @@ async fn input(Json(input): Json<Input>) -> String {
|
|||||||
let mut state = STATE.lock().await;
|
let mut state = STATE.lock().await;
|
||||||
|
|
||||||
if state.remaining.is_empty() {
|
if state.remaining.is_empty() {
|
||||||
return "ERROR (everybody drew already)".into();
|
return "... He mais tout le monde a déja pioché !!".into();
|
||||||
}
|
}
|
||||||
info!("joueurs qui restent : {:?}", state.remaining.join(","));
|
info!("joueurs qui restent : {:?}", state.remaining.join(","));
|
||||||
match state.remaining.iter().position(|p| input.person == *p).map(|e| state.remaining.remove(e)) {
|
match state.remaining.iter().position(|p| input.person == *p).map(|e| state.remaining.remove(e)) {
|
||||||
@@ -140,6 +140,6 @@ async fn input(Json(input): Json<Input>) -> String {
|
|||||||
None => "ERROR".to_string()
|
None => "ERROR".to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => "Vous avez déja pioché !".to_string()
|
None => "... He mais tu as déja pioché !".to_string()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user