mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-16 01:18:50 +00:00
add some error cli message for debug
This commit is contained in:
parent
b4358afcec
commit
7d2529588d
@ -31,6 +31,7 @@ pub async fn get_proton() -> anyhow::Result<Proton> {
|
|||||||
let proton = proton_component.init_proton();
|
let proton = proton_component.init_proton();
|
||||||
|
|
||||||
if let Err(ref e) = proton {
|
if let Err(ref e) = proton {
|
||||||
|
error!("Failed to initialize proton : {}", e);
|
||||||
anyhow::bail!("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 proton = get_proton().await?;
|
||||||
let game_dir = GameConfig::get_config().await.game_dir;
|
let game_dir = GameConfig::get_config().await.game_dir;
|
||||||
if game_dir.is_none() {
|
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");
|
anyhow::bail!("Failed to start game, the game directory was not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user