1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Use modern error handling and enforce it via lint (#1327)

Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
6543
2023-02-02 00:08:02 +01:00
committed by GitHub
parent c73b1ecf2a
commit 18d3139e9e
37 changed files with 156 additions and 157 deletions

View File

@@ -119,7 +119,7 @@ func (g *GitLab) Login(ctx context.Context, res http.ResponseWriter, req *http.R
token, err := config.Exchange(oauth2Ctx, code)
if err != nil {
return nil, fmt.Errorf("Error exchanging token. %s", err)
return nil, fmt.Errorf("Error exchanging token. %w", err)
}
client, err := newClient(g.URL, token.AccessToken, g.SkipVerify)