aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/github/pull_requests.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-06-02 15:09:01 +0200
committerGitHub <noreply@github.com>2023-06-02 15:09:01 +0200
commita21082ce8da5b020d97d5f94c24f1448c96f3cb2 (patch)
treecc2d3f21b91b85a80a8b916625f85b762a2c2c97 /src-tauri/src/github/pull_requests.rs
parent9652259ba345056186a6e4d0112ee7c48f24e479 (diff)
downloadFlightCore-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.rs2
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> =