diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-21 18:57:58 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-03-22 21:21:08 +0000 |
commit | 348412c7fa0230925c3b1ffc94e64367273da42d (patch) | |
tree | 82a48f3ca9f986ddc33c76137810e561a8378e50 /lib/bundler/friendly_errors.rb | |
parent | 7c307e0379e3c6c07d821b863fefbdfdfc84c4f1 (diff) |
[rubygems/rubygems] Use indented heredoc
https://github.com/rubygems/rubygems/commit/085d2776d8
Diffstat (limited to 'lib/bundler/friendly_errors.rb')
-rw-r--r-- | lib/bundler/friendly_errors.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index 39afe8a071..b66a046d37 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -61,7 +61,7 @@ module Bundler end def request_issue_report_for(e) - Bundler.ui.error <<-EOS.gsub(/^ {8}/, ""), nil, nil + Bundler.ui.error <<~EOS, nil, nil --- ERROR REPORT TEMPLATE ------------------------------------------------------- ``` @@ -75,7 +75,7 @@ module Bundler Bundler.ui.error "Unfortunately, an unexpected error occurred, and Bundler cannot continue." - Bundler.ui.error <<-EOS.gsub(/^ {8}/, ""), nil, :yellow + Bundler.ui.error <<~EOS, nil, :yellow First, try this link to see if there are any existing issue reports for this error: #{issues_url(e)} @@ -93,7 +93,7 @@ module Bundler end def serialized_exception_for(e) - <<-EOS.gsub(/^ {8}/, "") + <<~EOS #{e.class}: #{e.message} #{e.backtrace&.join("\n ")&.chomp} EOS |