errorHandler doesn't work anymore #2245
Replies: 1 comment 1 reply
-
Hey @alexdieudonne — I'm struggling to follow to be honest. You are reassigning What is If I were you, I would return Our Internally, we just use I will convert this to a discussion unless we can identify exactly what the bug would be but we are happy to help further here. I would personally try and determine where your Here is where I'd check:
Try changing that to:
Let me know if you can provide further info or if this fixes your issue! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Hello since the version 1.4.1 i was used to deal with the init.js with patch-package file to handle the errorHandle middleware inside payload, i had just to move
from the bottom to the top now when i do that, i get a html render instead of my errorhandler function

version 1.6.1 after moving my things
version 1.5.2

Steps to Reproduce
payload.errorHandler = (0, errorHandler_1.default)(payload.config, payload.logger) payload.router.use(payload.errorHandler);
from bottom to top of the function init or near topOther Details
Obviously the errorHandler function didn't really works at expected.

This is my errorHandler
Thank you again.
Beta Was this translation helpful? Give feedback.
All reactions