diff --git a/lib/heroku/helpers.rb b/lib/heroku/helpers.rb index 5ef2637a5..fbf222412 100644 --- a/lib/heroku/helpers.rb +++ b/lib/heroku/helpers.rb @@ -448,6 +448,8 @@ def styled_error(error, message='Heroku client internal error.') rollbar_id = Rollbar.error(error) $stderr.puts(format_error(error, message, rollbar_id)) error_log(message, error.message, error.backtrace.join("\n")) + rescue => e + $stderr.puts e, e.backtrace, error, error.backtrace end def error_log(*obj)