Detail and message are mostly the same for acme error, use just one to avoid conufsing

This commit is contained in:
Fang-Pen Lin
2025-11-12 09:12:14 -08:00
parent 159eb3138d
commit f11c4084ac
6 changed files with 144 additions and 206 deletions
+1 -2
View File
@@ -252,8 +252,7 @@ export const fastifyErrHandler = fastifyPlugin(async (server: FastifyZodProvider
error: error.name,
status: error.status,
type: `urn:ietf:params:acme:error:${error.type}`,
detail: error.detail,
message: error.message
detail: error.message
// TODO: add subproblems if they exist
});
} else {