diff options
author | Agis- <corestudiosinc@gmail.com> | 2015-08-28 23:39:13 +0300 |
---|---|---|
committer | Agis- <corestudiosinc@gmail.com> | 2015-08-29 11:54:39 +0300 |
commit | f668e28c19886ffa4680c4ac58e6bf58a3ebccde (patch) | |
tree | 509fc5a7d2f9eb5372cee01a95965a9aea03d1fb /lib/bundler/ui/shell.rb | |
parent | fa9c4e2343ebeaaa4e0eb62c41327eba37cca9ee (diff) | |
download | bundler-f668e28c19886ffa4680c4ac58e6bf58a3ebccde.tar.gz |
Handle errors when requiring gems gracefully
Fixes #3960.
Diffstat (limited to 'lib/bundler/ui/shell.rb')
-rw-r--r-- | lib/bundler/ui/shell.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb index 92af57756c..65460f2fdb 100644 --- a/lib/bundler/ui/shell.rb +++ b/lib/bundler/ui/shell.rb @@ -68,8 +68,8 @@ module Bundler name ? LEVELS.index(name) <= LEVELS.index(@level) : @level end - def trace(e, newline = nil) - return unless debug? + def trace(e, newline = nil, force = false) + return unless debug? || force msg = "#{e.class}: #{e.message}\n#{e.backtrace.join("\n ")}" tell_me(msg, nil, newline) end |