diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-06-02 15:09:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 15:09:01 +0200 |
commit | a21082ce8da5b020d97d5f94c24f1448c96f3cb2 (patch) | |
tree | cc2d3f21b91b85a80a8b916625f85b762a2c2c97 /src-tauri/src/github/pull_requests.rs | |
parent | 9652259ba345056186a6e4d0112ee7c48f24e479 (diff) | |
download | FlightCore-a21082ce8da5b020d97d5f94c24f1448c96f3cb2.tar.gz FlightCore-a21082ce8da5b020d97d5f94c24f1448c96f3cb2.zip |
fix: Remove some unwraps for fetching GitHub API (#375)
Remove some unwraps for fetching GitHub API to prevent thread from panicking on no internet
Diffstat (limited to 'src-tauri/src/github/pull_requests.rs')
-rw-r--r-- | src-tauri/src/github/pull_requests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs index b30fd272..44b41638 100644 --- a/src-tauri/src/github/pull_requests.rs +++ b/src-tauri/src/github/pull_requests.rs @@ -74,7 +74,7 @@ pub async fn get_pull_requests(url: String) -> Result<Vec<PullsApiResponseElemen let json_response = match fetch_github_releases_api(&paginated_url).await { Ok(result) => result, - Err(err) => return Err(err), + Err(err) => return Err(format!("Failed fetching GitHub API {err}")), }; let pulls_response: Vec<PullsApiResponseElement> = |