aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/github
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-02-14 21:51:41 +0100
committerGitHub <noreply@github.com>2024-02-14 21:51:41 +0100
commit90dba4678bb2c461d0937699a3d3205b04fbaae5 (patch)
treeea21437853d5240aabb6953ba97481d8b07e94ab /src-tauri/src/github
parent165864df979e37e8554b37e7918f59a2dc196f13 (diff)
downloadFlightCore-90dba4678bb2c461d0937699a3d3205b04fbaae5.tar.gz
FlightCore-90dba4678bb2c461d0937699a3d3205b04fbaae5.zip
fix: Return actual error instead of unwrapping (#811)
so we don't crash the thread on connection error but instead show an error message
Diffstat (limited to 'src-tauri/src/github')
-rw-r--r--src-tauri/src/github/release_notes.rs2
1 files changed, 1 insertions, 1 deletions
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<Vec<ReleaseInfo>, 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<ReleaseInfo> = vec![];