mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-19 22:21:46 +00:00
Annotate errors from go-git-providers
closes #3623 Signed-off-by: Max Jonas Werner <mail@makk.es>
This commit is contained in:
parent
1588663358
commit
ce854236cf
1 changed files with 2 additions and 2 deletions
|
|
@ -343,7 +343,7 @@ func (b *GitProviderBootstrapper) reconcileOrgRepository(ctx context.Context) (g
|
||||||
repo, err := b.provider.OrgRepositories().Get(ctx, repoRef)
|
repo, err := b.provider.OrgRepositories().Get(ctx, repoRef)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !errors.Is(err, gitprovider.ErrNotFound) {
|
if !errors.Is(err, gitprovider.ErrNotFound) {
|
||||||
return nil, fmt.Errorf("failed to get Git repository %q: %w", repoRef.String(), err)
|
return nil, fmt.Errorf("failed to get Git repository %q: provider error: %w", repoRef.String(), err)
|
||||||
}
|
}
|
||||||
// go-git-providers has at present some issues with the idempotency
|
// go-git-providers has at present some issues with the idempotency
|
||||||
// of the available Reconcile methods, and setting e.g. the default
|
// of the available Reconcile methods, and setting e.g. the default
|
||||||
|
|
@ -416,7 +416,7 @@ func (b *GitProviderBootstrapper) reconcileUserRepository(ctx context.Context) (
|
||||||
repo, err := b.provider.UserRepositories().Get(ctx, repoRef)
|
repo, err := b.provider.UserRepositories().Get(ctx, repoRef)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !errors.Is(err, gitprovider.ErrNotFound) {
|
if !errors.Is(err, gitprovider.ErrNotFound) {
|
||||||
return nil, fmt.Errorf("failed to get Git repository %q: %w", repoRef.String(), err)
|
return nil, fmt.Errorf("failed to get Git repository %q: provider error: %w", repoRef.String(), err)
|
||||||
}
|
}
|
||||||
// go-git-providers has at present some issues with the idempotency
|
// go-git-providers has at present some issues with the idempotency
|
||||||
// of the available Reconcile methods, and setting e.g. the default
|
// of the available Reconcile methods, and setting e.g. the default
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue