From 875d0b73894ccc81b610b0a77be1c3134162aae1 Mon Sep 17 00:00:00 2001 From: V Date: Thu, 18 May 2023 01:58:40 +0200 Subject: [PATCH] better errors --- github_downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_downloader.go b/github_downloader.go index 1256dc1..67a55e2 100644 --- a/github_downloader.go +++ b/github_downloader.go @@ -63,12 +63,12 @@ func GetGithubRelease(url, fallbackUrl string) (*GithubRelease, error) { // GitHub has a very strict 60 req/h rate limit and some (mostly indian) isps block github for some reason. // If that is the case, try our fallback at https://vencord.dev/releases/project if isRateLimitedOrBlocked && !triedFallback { - fmt.Println("Failed to fetch " + url + ". Trying fallback url " + fallbackUrl) + fmt.Printf("Failed to fetch %s (status code %d). Trying fallback url %s\n", url, res.StatusCode, fallbackUrl) return GetGithubRelease(fallbackUrl, fallbackUrl) } err = errors.New(res.Status) - fmt.Println("GitHub Api returned Non-OK status", GithubError) + fmt.Println(url, "returned Non-OK status", GithubError) return nil, err }