lib/jets/core.rb in jets-1.8.1 vs lib/jets/core.rb in jets-1.8.2

- old
+ new

@@ -93,10 +93,15 @@ puts "DEPRECATED: report_exception. Use on_exception instead.".color(:yellow) on_exception(exception) end def on_exception(exception) - Jets::Booter.run_turbines(:on_exceptions) + Jets::Turbine.subclasses.each do |subclass| + reporters = subclass.on_exceptions || [] + reporters.each do |label, block| + block.call(exception) + end + end end def custom_domain? Jets.config.domain.hosted_zone_name end