Skip to content

Commit

Permalink
Log error when unable to fetch credentials (#3481)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrozek authored May 31, 2024
1 parent 86c56e2 commit fa764bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/github/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (g *githubProviderManager) Build(ctx context.Context, config *db.Provider)

creds, err := g.getProviderCredentials(ctx, config)
if err != nil {
return nil, fmt.Errorf("unable to fetch credentials")
return nil, fmt.Errorf("unable to fetch credentials: %w", err)
}

client, ok := g.restClientCache.Get(creds.ownerFilter.String, creds.credential.GetCacheKey(), db.ProviderTypeGithub)
Expand Down

0 comments on commit fa764bc

Please sign in to comment.