Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

show error even if there is an error while printing it #1610

Merged
merged 1 commit into from
Jun 8, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/heroku/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down