mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Ignore non-constant format string linting error (#2068)
This commit is contained in:
@@ -309,6 +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) {
|
||||
//nolint:govet // ignore non-constant format string
|
||||
acmeError := NewDetailedError(ErrorUnauthorizedType, webhookErr.Error())
|
||||
acmeError.AddSubproblems(Subproblem{
|
||||
Type: fmt.Sprintf("urn:smallstep:webhook:error:%s", webhookErr.Code),
|
||||
|
||||
Reference in New Issue
Block a user