lib/jets/core.rb in jets-1.3.0 vs lib/jets/core.rb in jets-1.3.1
- old
+ new
@@ -156,9 +156,14 @@
return true if ENV['JETS_POLY_ONLY'] # bypass to allow rapid development of handlers
Jets::Commands::Build.poly_only?
end
def report_exception(exception)
+ puts "DEPRECATED: report_exception. Use on_exception instead.".colorize(:yellow)
+ on_exception(exception)
+ end
+
+ def on_exception(exception)
Jets::Turbine.subclasses.each do |subclass|
reporters = subclass.exception_reporters || []
reporters.each do |label, block|
block.call(exception)
end