Skip to content

Commit

Permalink
fix: Return actual error instead of unwrapping (#811)
Browse files Browse the repository at this point in the history
so we don't crash the thread on connection error but instead show an error message
  • Loading branch information
GeckoEidechse authored Feb 14, 2024
1 parent 165864d commit 90dba46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/github/release_notes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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![];
Expand Down

0 comments on commit 90dba46

Please sign in to comment.