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")
  "    !! --- Honeybadger request failed --------------------------------------------- !!\n    \n    We encountered an error when contacting the server:\n    \n      \#{response.error_message}\n    \n    To fix this issue, please try the following:\n    \n      - Make sure the gem is configured properly.\n      - Retry executing this command a few times.\n      - Make sure you can connect to \#{host} (`curl https://\#{host}/v1/notices`).\n      - Email [email protected] for help. Include as much debug info as you\n        can for a faster resolution!\n    \n    !! --- End -------------------------------------------------------------------- !!\n  MSG\nend\n"