def self.request_issue_report_for(e)
Bundler.ui.info "--- ERROR REPORT TEMPLATE -------------------------------------------------------\n- What did you do?\n\nI ran the command `\#{$PROGRAM_NAME} \#{ARGV.join(\" \")}`\n\n- What did you expect to happen?\n\nI expected Bundler to...\n\n- What happened instead?\n\nInstead, what actually happened was...\n\n\nError details\n\n\#{e.class}: \#{e.message}\n\#{e.backtrace.join(\"\\n \")}\n\n\#{Bundler::Env.new.report(:print_gemfile => false, :print_gemspecs => false).gsub(/\\n/, \"\\n \").strip}\n--- TEMPLATE END ----------------------------------------------------------------\n\n".gsub(/^ {6}/, "")
Bundler.ui.error "Unfortunately, an unexpected error occurred, and Bundler cannot continue."
Bundler.ui.warn "\nFirst, try this link to see if there are any existing issue reports for this error:\n\#{issues_url(e)}\n\nIf there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:\nhttps://github.com/bundler/bundler/issues/new\n".gsub(/^ {6}/, "")
end