mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-05-18 09:35:50 +00:00
Revert error details for the BadGame error
This commit is contained in:
parent
c263b17651
commit
e72d7bdf8b
3 changed files with 12 additions and 11 deletions
|
|
@ -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}")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue