From 90dba4678bb2c461d0937699a3d3205b04fbaae5 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Wed, 14 Feb 2024 21:51:41 +0100 Subject: fix: Return actual error instead of unwrapping (#811) so we don't crash the thread on connection error but instead show an error message --- src-tauri/src/github/release_notes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-tauri') diff --git a/src-tauri/src/github/release_notes.rs b/src-tauri/src/github/release_notes.rs index f78a9001..0dd4b948 100644 --- a/src-tauri/src/github/release_notes.rs +++ b/src-tauri/src/github/release_notes.rs @@ -104,7 +104,7 @@ pub async fn get_northstar_release_notes() -> Result, String> { // Send the request .send() .await - .unwrap(); + .map_err(|err| err.to_string())?; // TODO there's probably a way to automatically serialize into the struct but I don't know yet how to let mut release_info_vector: Vec = vec![]; -- cgit v1.2.3