Skip to content

Commit

Permalink
Merge pull request #2069 from smallstep/mariano/urn
Browse files Browse the repository at this point in the history
Change URN for acme errors
  • Loading branch information
maraino authored Nov 15, 2024
2 parents 73f97e2 + 1a2e647 commit 7eccbc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion acme/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion acme/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
}
Expand Down

0 comments on commit 7eccbc5

Please sign in to comment.