Merge pull request #354 from blmarket/main

Show some helpful error when --run-game cannot work
This commit is contained in:
Observer KRypt0n_ 2024-05-08 19:25:06 +02:00 committed by GitHub
commit ab3e3666c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"));
}
_ => ()
}
}