diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-11-29 19:32:56 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-11-30 09:04:48 -0600 |
commit | 4d6a5cbf1ca2648896d696ab97bc366cf07c7b01 (patch) | |
tree | d83bffed7924884b9d64fbc22fb4d50a7f9a8363 /lib/bundler/friendly_errors.rb | |
parent | e64bbab4830b3b6ef3cb7105165b923b163fab3d (diff) | |
download | bundler-4d6a5cbf1ca2648896d696ab97bc366cf07c7b01.tar.gz |
[FriendlyErrors] Use GFM in issue report template
Diffstat (limited to 'lib/bundler/friendly_errors.rb')
-rw-r--r-- | lib/bundler/friendly_errors.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb index c2853294a7..911c08f714 100644 --- a/lib/bundler/friendly_errors.rb +++ b/lib/bundler/friendly_errors.rb @@ -71,12 +71,14 @@ module Bundler Instead, what happened was... - Error details + ## Backtrace - #{e.class}: #{e.message} - #{e.backtrace && e.backtrace.join("\n ")} + ``` + #{e.class}: #{e.message} + #{e.backtrace && e.backtrace.join("\n ").chomp} + ``` - #{Bundler::Env.new.report(:print_gemfile => false, :print_gemspecs => false).gsub(/\n/, "\n ").strip} + #{Bundler::Env.new.report(:print_gemfile => false, :print_gemspecs => false)} --- TEMPLATE END ---------------------------------------------------------------- EOS |