class Honeybadger::CLI::Main
def log_error(e)
def log_error(e) case e when *Util::HTTP::ERRORS say(<<-MSG, :red) Failed to notify Honeybadger ------------------------------------------- !! happened? ncountered an HTTP error while contacting our service. Issues like this are lly temporary. r details class}: #{e.message}\n at #{e.backtrace && e.backtrace.first} can I do? try the command. ke sure you can connect to api.honeybadger.io (`curl https://api.honeybadger.io/v1/notices`). you continue to see this message, email us at support@honeybadger.io on't forget to attach this output!) End -------------------------------------------------------------------- !! else say(<<-MSG, :red) Honeybadger command failed --------------------------------------------- !! did you try to do? tried to execute the following command: eybadger #{ARGV.join(' ')}` actually happend? ncountered a Ruby exception and were forced to cancel your request. r details class}: #{e.message} e.backtrace && e.backtrace.join("\n ")} can I do? you're calling the `install` or `test` command in a Rails app, make sure u can boot the Rails console: `bundle exec rails console`. try the command. you continue to see this message, email us at support@honeybadger.io on't forget to attach this output!) End -------------------------------------------------------------------- !! end end