lib/lita/handler/chat_router.rb in lita-4.2.1 vs lib/lita/handler/chat_router.rb in lita-4.3.0
- old
+ new
@@ -86,9 +86,10 @@
robot.hooks[:trigger_route].each { |hook| hook.call(response: response, route: route) }
handler = new(robot)
route.callback.call(handler, response)
rescue Exception => e
log_dispatch_error(e)
+ robot.config.robot.error_handler.call(e)
raise e if Lita.test_mode?
end
private