lib/hanami/extensions/action.rb in hanami-2.1.0.beta1 vs lib/hanami/extensions/action.rb in hanami-2.1.0.beta2

- old
+ new

@@ -92,13 +92,15 @@ res.render(view, **req.params) if !halted && auto_render?(res) super end # @api private - def _handle_exception(request, _response, exception) + def _handle_exception(request, _response, _exception) + super + rescue StandardError => exception rack_monitor&.instrument(:error, exception: exception, env: request.env) - super + raise end # @api private def view_options(request, response) {context: view_context&.with(**view_context_options(request, response))}.compact