lib/adhearsion/foundation/exception_handler.rb in adhearsion-2.0.0.rc1 vs lib/adhearsion/foundation/exception_handler.rb in adhearsion-2.0.0.rc2

- old
+ new

@@ -1,11 +1,11 @@ # encoding: utf-8 class Object - def catching_standard_errors(&block) + def catching_standard_errors(l = logger, &block) begin yield rescue StandardError => e - Adhearsion::Events.trigger :exception, e + Adhearsion::Events.trigger :exception, [e, l] end end end