Try to fix error handling

This commit is contained in:
Fang-Pen Lin
2025-11-07 09:19:37 -08:00
parent 453dc57829
commit c7cf1cac9f
+2 -1
View File
@@ -249,7 +249,8 @@ export const fastifyErrHandler = fastifyPlugin(async (server: FastifyZodProvider
.status(error.status) .status(error.status)
.send({ .send({
reqId: req.id, reqId: req.id,
status: error.status, error: error.name,
statusCode: error.status,
type: `urn:ietf:params:acme:error:${error.type}`, type: `urn:ietf:params:acme:error:${error.type}`,
detail: error.detail, detail: error.detail,
message: error.message message: error.message