aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/errors.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/errors.rb')
-rw-r--r--lib/bundler/errors.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/bundler/errors.rb b/lib/bundler/errors.rb
index 75c8c90b..ea2b52a6 100644
--- a/lib/bundler/errors.rb
+++ b/lib/bundler/errors.rb
@@ -41,7 +41,11 @@ module Bundler
attr_reader :orig_exception
def initialize(orig_exception, msg)
- super(msg)
+ full_message = msg + "\nGem Load Error is: #{orig_exception.message}\n"\
+ "Backtrace for gem load error is:\n"\
+ "#{orig_exception.backtrace.join("\n")}\n"\
+ "Bundler Error Backtrace:\n"
+ super(full_message)
@orig_exception = orig_exception
end