Sha256: 8cc7fe7d395438aa635074886c94fe027eaf9ac51cfdc6fe5e284478ed55fbba

Contents?: true

Size: 309 Bytes

Versions: 4

Compression:

Stored size: 309 Bytes

Contents

require 'raven'
require 'rake/task'

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

4 entries across 4 versions & 2 rubygems

Version Path
sentry-raven-0.12.0 lib/raven/rake.rb
mustwin-sentry-raven-0.11.2 lib/raven/rake.rb
sentry-raven-0.11.2 lib/raven/rake.rb
sentry-raven-0.11.1 lib/raven/rake.rb