From 7d2529588d666d6be6fd374d0b8d99c8b06e8cce Mon Sep 17 00:00:00 2001 From: ALEZ-DEV Date: Mon, 28 Apr 2025 18:45:28 +0200 Subject: [PATCH] add some error cli message for debug --- babylonia-terminal-gui/src/manager.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/babylonia-terminal-gui/src/manager.rs b/babylonia-terminal-gui/src/manager.rs index c9da92b..b20150e 100644 --- a/babylonia-terminal-gui/src/manager.rs +++ b/babylonia-terminal-gui/src/manager.rs @@ -31,6 +31,7 @@ pub async fn get_proton() -> anyhow::Result { let proton = proton_component.init_proton(); if let Err(ref e) = proton { + error!("Failed to initialize proton : {}", e); anyhow::bail!("Failed to initialize proton : {}", e); } @@ -47,6 +48,7 @@ pub async fn run_game() -> anyhow::Result<()> { let proton = get_proton().await?; let game_dir = GameConfig::get_config().await.game_dir; if game_dir.is_none() { + error!("Failed to start game, the game directory was not found"); anyhow::bail!("Failed to start game, the game directory was not found"); }