Class: Rake::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/nadir/plugins/rake.rb

Instance Method Summary collapse

Instance Method Details

#display_error_message(exception) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/nadir/plugins/rake.rb', line 5

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

#orig_display_error_messageObject



3
# File 'lib/nadir/plugins/rake.rb', line 3

alias_method :orig_display_error_message, :display_error_message