diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-02-14 21:51:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 21:51:41 +0100 |
commit | 90dba4678bb2c461d0937699a3d3205b04fbaae5 (patch) | |
tree | ea21437853d5240aabb6953ba97481d8b07e94ab /src-tauri | |
parent | 165864df979e37e8554b37e7918f59a2dc196f13 (diff) | |
download | FlightCore-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')
-rw-r--r-- | src-tauri/src/github/release_notes.rs | 2 |
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![]; |