In development when a before_action renders or redirects this error message appears on the logs:
Filter chain halted as :before_action rendered or redirected
I find this message very helpful. However, if a before_action raises an error that is handled by a rescue_from block, nothing is logged indicating an error occurred. Ideally I would like to see something like:
Filter chain halted as :before_action rendered, redirected, or raised.
and/or
rescue_from rescued X from file:line.
I’d be happy to work on this myself if there is interest.
Filter chain halted as :before_action rendered, redirected, or raised.
and/or
rescue_from rescued X from file:line.
I think the latter makes more sense. I don’t think this should be specific to callbacks. Also, considering rescue handlers usually eventually render or redirect, in most cases you would see both the ‘rescued’ log and the ‘chain halted’ log when it happens in the context of a callback. The implementation would just be a matter of logging after executing the rescue handler.