Module: Airbrake::Rake::Task
- Defined in:
- lib/airbrake/rake.rb
Overview
Redefine Rake::Task#execute, so it can report errors to Airbrake.
Instance Method Summary collapse
-
#execute(args = nil) ⇒ Object
A wrapper around the original
#execute
, that catches all errors and notifies Airbrake.
Instance Method Details
#execute(args = nil) ⇒ Object
A wrapper around the original #execute
, that catches all errors and notifies Airbrake.
rubocop:disable Lint/RescueException
16 17 18 19 20 21 |
# File 'lib/airbrake/rake.rb', line 16 def execute(args = nil) super(args) rescue Exception => ex notify_airbrake(ex, args) raise ex end |