aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-06-02 16:18:04 +0200
committerGitHub <noreply@github.com>2023-06-02 16:18:04 +0200
commit300b82001cacef4a9bb0366eb93f0452dd34a161 (patch)
treea069a7234e39133b920c9abe4fbea5eb1bc5062a /src-tauri/src/main.rs
parenta21082ce8da5b020d97d5f94c24f1448c96f3cb2 (diff)
downloadFlightCore-300b82001cacef4a9bb0366eb93f0452dd34a161.tar.gz
FlightCore-300b82001cacef4a9bb0366eb93f0452dd34a161.zip
fix: Remove unwrap from Northstar update check (#377)
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 6004531a..51ad085b 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -263,7 +263,10 @@ async fn check_is_northstar_outdated(
None => "Northstar".to_string(),
};
- let index = thermite::api::get_package_index().unwrap().to_vec();
+ let index = match thermite::api::get_package_index() {
+ Ok(res) => res.to_vec(),
+ Err(err) => return Err(format!("Couldn't check if Northstar up-to-date: {err}")),
+ };
let nmod = index
.iter()
.find(|f| f.name.to_lowercase() == northstar_package_name.to_lowercase())