aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-tauri/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index ee3c91ed..1e548166 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -195,7 +195,10 @@ async fn do_install(nmod: &thermite::model::ModVersion, game_path: &std::path::P
let download_path = format!("{}/{}", download_directory.clone(), filename);
println!("{}", download_path);
- let nfile = thermite::core::manage::download_file(&nmod.url, download_path).unwrap();
+ let nfile = match thermite::core::manage::download_file(&nmod.url, download_path){
+ Ok(res) => res,
+ Err(err) => return Err(anyhow!("Failed downloading Northstar {}", err)),
+ };
println!("Extracting Northstar...");
extract(nfile, game_path)?;