module Bundler::FriendlyErrors

def request_issue_report_for(e)

def request_issue_report_for(e)
  Bundler.ui.error <<-EOS.gsub(/^ {8}/, ""), nil, nil
    --- ERROR REPORT TEMPLATE -------------------------------------------------------
    ```
    #{exception_message(e)}
    ```
    #{Bundler::Env.report}
    --- TEMPLATE END ----------------------------------------------------------------
  EOS
  Bundler.ui.error "Unfortunately, an unexpected error occurred, and Bundler cannot continue."
  Bundler.ui.error <<-EOS.gsub(/^ {8}/, ""), nil, :yellow
    First, try this link to see if there are any existing issue reports for this error:
    #{issues_url(e)}
    If there aren't any reports for this error yet, please fill in the new issue form located at #{new_issue_url}, and copy and paste the report template above in there.
  EOS
end