Skip to content

Commit 66f3498

Browse files
committed
Patch: Output error message if we fail to read localconfig.vdf for some reason
1 parent e1a8435 commit 66f3498

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/patch.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const TEXT_SERVER_ROOTS: [&str; 2] = [
77
// Patch files
88
const BINARY_SERVER_ROOTS: [&str; 2] = [
99
"https://media.githubusercontent.com/media/solsticegamestudios/GModPatchTool/refs/heads/files/",
10-
"https://solsticegamestudios.com/gmodpatchtool/" // TODO: Webhook that triggers git pull and clears the cache on Cloudflare
10+
"https://solsticegamestudios.com/gmodpatchtool/"
1111
];
1212

1313
//const GMOD_STEAM_APPID: u64 = 4000;
@@ -1232,8 +1232,8 @@ where
12321232
let steam_user_localconfig_path = extend_pathbuf_and_return(steam_path.clone(), &["userdata", steam_id.account_id().into_u32().to_string().as_str(), "config", "localconfig.vdf"]);
12331233
let steam_user_localconfig_str = tokio::fs::read_to_string(steam_user_localconfig_path).await;
12341234

1235-
if steam_user_localconfig_str.is_err() {
1236-
return Err(AlmightyError::Generic("Couldn't find Steam localconfig.vdf. Have you ever launched/signed in to Steam?".to_string()));
1235+
if let Err(error) = steam_user_localconfig_str {
1236+
return Err(AlmightyError::Generic(format!("Couldn't find/read Steam localconfig.vdf. Have you ever launched/signed in to Steam?\n\t{error}")));
12371237
}
12381238

12391239
// HACK: Rip out the "WebStorage" section to mitigate stack overflow issues

0 commit comments

Comments
 (0)