Sha256: 0da84ed42b19c8d6b40c67ad554de2ec2aa51eb148cbd0fc7df881409b9b976f

Contents?: true

Size: 464 Bytes

Versions: 10

Compression:

Stored size: 464 Bytes

Contents

module Rake
  class Application
    alias_method :orig_display_error_message, :display_error_message

    def display_error_message(exception)
      begin
        location = "rake #{top_level_tasks.join(' ')}"

        Nadir.notify exception, location: location
        Nadir::Transport::HTTPAsync.shut_down
      rescue => e
        Nadir.logger.error "[Nadir] Internal error: #{e.inspect}"
      end

      orig_display_error_message exception
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nadir-1.2.1 lib/nadir/plugins/rake.rb
nadir-1.2.0 lib/nadir/plugins/rake.rb
nadir-1.1.10 lib/nadir/plugins/rake.rb
nadir-1.1.9 lib/nadir/plugins/rake.rb
nadir-1.1.8 lib/nadir/plugins/rake.rb
nadir-1.1.7 lib/nadir/plugins/rake.rb
nadir-1.1.6 lib/nadir/plugins/rake.rb
nadir-1.1.5 lib/nadir/plugins/rake.rb
nadir-1.1.4 lib/nadir/plugins/rake.rb
nadir-1.1.3 lib/nadir/plugins/rake.rb