BetterErrors / BetterErrors/better_errors
Ignore a Controller or specific endpoint?
- Dominant language
- Ruby
- Stars
- 6.9k
- Forks
- 430
- PR merge metrics
- No merged PRs in 30d
Description
I'd like for better_errors to *not* do anything for a given endpoint or controller.
For example, I have `UptimeController#example_error` that intentionally raises an error to aid in system monitoring. This works fine in prod, but in dev better_errors does its job and returns a better error message.
But I don't want it to. I want to actually see the error returned to the browser, as it will in prod.
I've tried:
BetterErrors.ignored_classes = ['ActionDispatch::Request', 'ActionDispatch::Response', 'UptimeController']
...but I guess that only affects inspection, not rescuing.
Is it currently possible to suppress better_errors for one endpoint?
If not, would this be useful to others? I don't mind taking it on, if the community doesn't think it's a dumb idea.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.