This commit is contained in:
6543 2023-02-10 23:03:34 +01:00
parent 1b6ea4b6e1
commit 7c5831d293
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862
2 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,7 @@
package upstream
import (
"errors"
"strings"
"time"
@ -30,7 +31,7 @@ func (o *Options) CheckCanonicalDomain(giteaClient *gitea.Client, actualDomain,
}
body, err := giteaClient.GiteaRawContent(o.TargetOwner, o.TargetRepo, o.TargetBranch, canonicalDomainConfig)
if err == nil || err == gitea.ErrorNotFound {
if err != nil && !errors.Is(err, gitea.ErrorNotFound) {
log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, o.TargetOwner, o.TargetRepo)
}