Revert error details for the BadGame error

This commit is contained in:
CosminPerRam 2023-01-13 00:39:58 +02:00
parent c263b17651
commit e72d7bdf8b
3 changed files with 12 additions and 11 deletions

View file

@ -430,10 +430,10 @@ fn get_response(address: &str, port: u16, app: App, gather_settings: GatheringSe
let info = client.get_server_info(&app)?;
let protocol = info.protocol;
if let App::Source(x) = &app {
if let Some(appid) = x {
if let App::Source(source_app) = &app {
if let Some(appid) = source_app {
if *appid != info.appid {
return Err(BadGame);
return Err(BadGame(format!("AppId: {appid}")));
}
}
}