You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just wanting to know, is this plugin support to custom error handler? My use case is I have custom error handler that transform http status code and response body based on its type of error.
My code is like this
exportconstapp=newElysia()// Hooks/Middlewares.use(loggerPlugin)// Using logger.use(corsPlugin).use(jwtPlugin).use(versionPlugin)// using custom error handler.use(errorPlugin)// Using custom error handler (for custom response)// Routes.use(awaitautoload({dir: join(process.cwd(),"src","routes"),}),).use(swaggerPlugin)// Cron// .use(cronJob) // Uncomment this line to enable cron job// GraphQL// .use(graphqlPlugin) // Uncomment this line to enable GraphQL// Start the server.listen(Bun.env.PORT??3000);
Does it still capture the custom status code and message after error handling for the logger http?
Where did you find it?
No response
The text was updated successfully, but these errors were encountered:
What is the type of issue?
Something else
What is the issue?
I'm just wanting to know, is this plugin support to custom error handler? My use case is I have custom error handler that transform http status code and response body based on its type of error.
My code is like this
Does it still capture the custom status code and message after error handling for the logger http?
Where did you find it?
No response
The text was updated successfully, but these errors were encountered: