mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Try to fix error handling
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user