From 860a8474d3064a0b441ea0afd5d8b47c1d5e70c6 Mon Sep 17 00:00:00 2001 From: "Jeong, Hun" Date: Sun, 24 Mar 2024 11:17:36 -0700 Subject: [PATCH] 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 --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 525fcdf..8af25b0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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")); + } + _ => () } }