From 300b82001cacef4a9bb0366eb93f0452dd34a161 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Fri, 2 Jun 2023 16:18:04 +0200 Subject: fix: Remove unwrap from Northstar update check (#377) --- src-tauri/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()) -- cgit v1.2.3