mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
Merge branch 'main' into graceful-validation-error
This commit is contained in:
commit
e7e3045601
1 changed files with 7 additions and 1 deletions
|
@ -41,7 +41,13 @@ func (o *Options) CheckCanonicalDomain(giteaClient *gitea.Client, actualDomain,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only log the error on the last iteration.
|
// Only log the error on the last iteration.
|
||||||
if i == 2 {
|
if i != 2 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if err != gitea.ErrorNotFound {
|
||||||
|
log.Error().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, o.TargetOwner, o.TargetRepo)
|
||||||
|
} else {
|
||||||
log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, o.TargetOwner, o.TargetRepo)
|
log.Info().Err(err).Msgf("could not read %s of %s/%s", canonicalDomainConfig, o.TargetOwner, o.TargetRepo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue