mirror of
https://github.com/outbackdingo/certificates.git
synced 2026-01-27 10:18:34 +00:00
Merge pull request #2069 from smallstep/mariano/urn
Change URN for acme errors
This commit is contained in:
@@ -312,7 +312,7 @@ func (o *Order) Finalize(ctx context.Context, db DB, csr *x509.CertificateReques
|
||||
//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),
|
||||
Type: fmt.Sprintf("urn:smallstep:acme:error:%s", webhookErr.Code),
|
||||
Detail: webhookErr.Message,
|
||||
})
|
||||
return acmeError
|
||||
|
||||
@@ -636,7 +636,7 @@ func TestOrder_Finalize(t *testing.T) {
|
||||
},
|
||||
},
|
||||
err: NewDetailedError(ErrorUnauthorizedType, "The message (theCode)").AddSubproblems(Subproblem{
|
||||
Type: "urn:smallstep:webhook:error:theCode",
|
||||
Type: "urn:smallstep:acme:error:theCode",
|
||||
Detail: "The message",
|
||||
}),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user