Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.
Rust differential-testinggame-enginegamedevlinuxminecraftminecraft-javareimplementationrustvoxelvulkanwgpu
Launcher: a failed account save is printed instead of dropped
Alexander Krylovba579191f9b8
diff --git a/launcher/src/account.rs b/launcher/src/account.rsindex bec90f731..ac46ddc28 100644--- a/launcher/src/account.rs+++ b/launcher/src/account.rs@@ -2024,7 +2024,9 @@ pub fn session_for_game(&mut accounts,offline_without_owner,)?;- let _ = accounts.save();+ if let Err(e) = accounts.save() {+ eprintln!("Horizon: the accounts are not saved: {e}");+ }Ok(session_file(game_home, pass))}@@ -2044,7 +2046,9 @@ pub fn session_for_game_as(&mut accounts,who,);- let _ = accounts.save();+ if let Err(e) = accounts.save() {+ eprintln!("Horizon: the accounts are not saved: {e}");+ }Ok(session_file(game_home, pass?))}@@ -2095,7 +2099,9 @@ pub fn java_player() -> Result<crate::java_launch::Player, String> {store(),&mut accounts,);- let _ = accounts.save();+ if let Err(e) = accounts.save() {+ eprintln!("Horizon: the accounts are not saved: {e}");+ }player}diff --git a/launcher/src/backend.rs b/launcher/src/backend.rsindex 8c0916649..57f4b4841 100644--- a/launcher/src/backend.rs+++ b/launcher/src/backend.rs@@ -1463,7 +1463,9 @@ fn download_for_owner(account::store(),&mut accounts,);- let _ = accounts.save();+ if let Err(e) = accounts.save() {+ log(format!("Horizon: the accounts are not saved: {e}"));+ }download_for(pins, dir, pass, !accounts.accounts.is_empty(), fetch, log)}