Module: Honeybadger::CLI::Helpers::BackendCmd Private

Included in:
Deploy, Exec, Notify
Defined in:
lib/honeybadger/cli/helpers.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#error_message(response) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/honeybadger/cli/helpers.rb', line 5

def error_message(response)
  host = config.get(:'connection.host')
  <<-MSG
!! --- Honeybadger request failed --------------------------------------------- !!

We encountered an error when contacting the server:

  #{response.error_message}

To fix this issue, please try the following:

  - Make sure the gem is configured properly.
  - Retry executing this command a few times.
  - Make sure you can connect to #{host} (`curl https://#{host}/v1/notices`).
  - Email [email protected] for help. Include as much debug info as you
    can for a faster resolution!

!! --- End -------------------------------------------------------------------- !!
MSG
end