Fix failed to to cannot

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-29 19:28:02 +01:00
parent 2766f8e423
commit 6f2bd9c92f
39 changed files with 198 additions and 192 deletions

View File

@@ -214,7 +214,7 @@ func (p *Provisioner) provisionDomainCertificate(
if err != nil {
p.logger.ErrorCtx(
ctx,
"failed to get HTTP challenge",
"cannot get HTTP challenge",
log.String("domain", domain.Domain),
log.Error(err),
)
@@ -233,7 +233,7 @@ func (p *Provisioner) provisionDomainCertificate(
fullDomain.SSLStatus = coredata.CustomDomainSSLStatusProvisioning
if err := fullDomain.Update(ctx, conn, coredata.NewNoScope(), p.encryptionKey); err != nil {
return fmt.Errorf("failed to update domain with challenge: %w", err)
return fmt.Errorf("cannot update domain with challenge: %w", err)
}
p.logger.InfoCtx(

View File

@@ -98,7 +98,7 @@ func (r *Renewer) checkAndRenew(ctx context.Context) error {
domains := coredata.CustomDomains{}
scope := coredata.NewNoScope()
if err := domains.ListDomainsForRenewal(ctx, conn, scope); err != nil {
return fmt.Errorf("failed to list domains for renewal: %w", err)
return fmt.Errorf("cannot list domains for renewal: %w", err)
}
if len(domains) == 0 {

View File

@@ -154,7 +154,7 @@ func (s *Selector) rebuildCacheEntry(ctx context.Context, conn pg.Conn, domain s
}
if err := cache.Upsert(ctx, conn); err != nil {
return fmt.Errorf("failed to insert cache entry: %w", err)
return fmt.Errorf("cannot insert cache entry: %w", err)
}
return nil