mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2024-11-24 13:49:34 +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(());
|
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