Skip to content
Browse files

Merge pull request #142 from ryansouza/patch-1

Prettier rake exception actions
  • Loading branch information...
2 parents 73869ba + 6d9548a commit 254cbf5467a6e03122ba9ea74b7574d2dc96deea @shime shime committed Nov 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/airbrake/rake_handler.rb
View
4 lib/airbrake/rake_handler.rb
@@ -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

0 comments on commit 254cbf5

Please sign in to comment.
Something went wrong with that request. Please try again.