lib/flail/exception.rb in flail-0.1.2 vs lib/flail/exception.rb in flail-0.1.3
- old
+ new
@@ -2,9 +2,10 @@
require 'json'
class Flail
class Exception
def self.notify(exception, request_data = {})
+ exception.set_backtrace(Kernel.caller) if exception.backtrace.nil?
env = {'flail.request' => {'user_agent' => 'internal'}}
fe = Flail::Exception.new(env, exception)
fe.request_data = fe.request_data.merge(request_data)
fe.handle!