lib/bundler/friendly_errors.rb in bundler-2.2.0.rc.1 vs lib/bundler/friendly_errors.rb in bundler-2.2.0.rc.2
- old
+ new
@@ -2,11 +2,11 @@
require_relative "vendored_thor"
module Bundler
module FriendlyErrors
- module_function
+ module_function
def log_error(error)
case error
when YamlSyntaxError
Bundler.ui.error error.message
@@ -49,11 +49,11 @@
else 1
end
end
def request_issue_report_for(e)
- Bundler.ui.info <<-EOS.gsub(/^ {8}/, "")
+ Bundler.ui.error <<-EOS.gsub(/^ {8}/, ""), nil, nil
--- ERROR REPORT TEMPLATE -------------------------------------------------------
# Error Report
## Questions
@@ -92,10 +92,10 @@
EOS
Bundler.ui.error "Unfortunately, an unexpected error occurred, and Bundler cannot continue."
- Bundler.ui.warn <<-EOS.gsub(/^ {8}/, "")
+ 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 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: