Sha256: c9e6b4c61e57f39cabbb486c5530fd5611902801aaec8699da074727ac3f15a9

Contents?: true

Size: 341 Bytes

Versions: 11

Compression:

Stored size: 341 Bytes

Contents

require 'rake'
require 'rake/task'
require 'raven/integrations/tasks'

module Rake
  class Application
    alias :orig_display_error_messsage :display_error_message
    def display_error_message(ex)
      Raven.capture_exception ex, :logger => 'rake', :tags => { 'rake_task' => @name }
      orig_display_error_messsage(ex)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sentry-raven-0.15.2 lib/raven/integrations/rake.rb
sentry-raven-0.15.1 lib/raven/integrations/rake.rb
sentry-raven-0.15.0 lib/raven/integrations/rake.rb
sentry-raven-0.14.0 lib/raven/integrations/rake.rb
sentry-raven-0.13.3 lib/raven/integrations/rake.rb
sentry-raven-0.13.2 lib/raven/integrations/rake.rb
sentry-raven-0.13.1 lib/raven/integrations/rake.rb
sentry-raven-0.13.0 lib/raven/integrations/rake.rb
sentry-raven-0.12.3 lib/raven/integrations/rake.rb
sentry-raven-0.12.2 lib/raven/integrations/rake.rb
sentry-raven-0.12.1 lib/raven/integrations/rake.rb