Skip to content

Commit

Permalink
handle error corectly
Browse files Browse the repository at this point in the history
Signed-off-by: MUzairS15 <[email protected]>
  • Loading branch information
MUzairS15 committed Aug 4, 2024
1 parent a93ee9b commit 04d6194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func GetLatestReleaseTagsSorted(org string, repo string) ([]string, error) {
defer safeClose(resp.Body)

if resp.StatusCode != http.StatusOK {
return nil, ErrGettingLatestReleaseTag(err)
return nil, ErrGettingLatestReleaseTag(fmt.Errorf("unable to get latest release tag"))
}

body, err := io.ReadAll(resp.Body)
Expand Down

0 comments on commit 04d6194

Please sign in to comment.