aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-05-17 16:47:00 +0200
committerGitHub <noreply@github.com>2023-05-17 16:47:00 +0200
commit76f621a8454389ffbe1a6fe7fada0deeebf2f757 (patch)
treea3f57d757e87765e0511607cdf2f55819bee7a2f /src-tauri/src/main.rs
parent9746cdeb47b226087ced574cddaac829b995e79b (diff)
downloadFlightCore-76f621a8454389ffbe1a6fe7fada0deeebf2f757.tar.gz
FlightCore-76f621a8454389ffbe1a6fe7fada0deeebf2f757.zip
feat: Better logging regarding mod installation (#363)
* fix: Make log comment more specific * feat: Log attempting to create temp dir * feat: Log mod to install and GameInstall struct * refactor: Replace `dbg` with proper logging * refactor: Replace `dbg` with proper logging * feat: Warning log mod install error * style: Fix formatting * feat: Log libthermite error and modstring when mod install fails
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 5675a0df..b27233b7 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -308,7 +308,7 @@ async fn install_northstar_caller(
northstar_package_name: Option<String>,
version_number: Option<String>,
) -> Result<bool, String> {
- log::info!("Running");
+ log::info!("Running Northstar install");
// Get Northstar package name (`Northstar` vs `NorthstarReleaseCandidate`)
let northstar_package_name = northstar_package_name
@@ -356,7 +356,13 @@ async fn install_mod_caller(
game_install: GameInstall,
thunderstore_mod_string: String,
) -> Result<(), String> {
- fc_download_mod_and_install(&game_install, &thunderstore_mod_string).await?;
+ match fc_download_mod_and_install(&game_install, &thunderstore_mod_string).await {
+ Ok(()) => (),
+ Err(err) => {
+ log::warn!("{err}");
+ return Err(err);
+ }
+ };
match clean_up_download_folder(&game_install, false) {
Ok(()) => Ok(()),
Err(err) => {