mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-11-21 20:36:01 +03:00
Show some helpful error when --run-game cannot work
Instead of just try to run UI with invalid argument to fail, it will just fail with better error messages. Fixes #327
This commit is contained in:
parent
e4bc7afa74
commit
860a8474d3
1 changed files with 4 additions and 0 deletions
|
@ -241,6 +241,10 @@ fn main() -> anyhow::Result<()> {
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
LauncherState::PredownloadAvailable { .. } if run_game => {
|
||||
return Err(anyhow::anyhow!("Predownload available. Use --just-run-game to run anyway, or open the UI to download it"));
|
||||
}
|
||||
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue