Fix failed to to cannot
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user