Skip to content

Commit

Permalink
Merge pull request #142 from ryansouza/patch-1
Browse files Browse the repository at this point in the history
Prettier rake exception actions
  • Loading branch information
shime committed Nov 29, 2012
2 parents 73869ba + 6d9548a commit 254cbf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/airbrake/rake_handler.rb
Expand Up @@ -13,14 +13,14 @@ def display_error_message_with_airbrake(ex)
(Airbrake.configuration.rescue_rake_exceptions ||
(Airbrake.configuration.rescue_rake_exceptions===nil && !self.tty_output?))

Airbrake.notify_or_ignore(ex, :component => reconstruct_command_line, :cgi_data => environment_info)
Airbrake.notify_or_ignore(ex, :component => 'rake', :action => reconstruct_command_line, :cgi_data => environment_info)
end

display_error_message_without_airbrake(ex)
end

def reconstruct_command_line
"rake #{ARGV.join( ' ' )}"
ARGV.join( ' ' )
end

def environment_info
Expand Down

0 comments on commit 254cbf5

Please sign in to comment.