From 61b0440f5adf1e96d96822f7fbf9f633741c9913 Mon Sep 17 00:00:00 2001 From: Herman Slatman Date: Fri, 15 Nov 2024 19:05:31 +0100 Subject: [PATCH] Fix non-constant webhook error message --- acme/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme/order.go b/acme/order.go index fa0886daa..9edcd28a2 100644 --- a/acme/order.go +++ b/acme/order.go @@ -309,7 +309,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques // Add subproblem for webhook errors, others can be added later. var webhookErr *webhook.Error if errors.As(err, &webhookErr) { - acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error()) + acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error()) //nolint:govet // allow non-constant error messages acmeError.AddSubproblems(Subproblem{ Type: fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code), Detail: webhookErr.Message,