aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/errors.rb
diff options
context:
space:
mode:
authorJames Wen <jrw2175@columbia.edu>2015-12-26 14:34:56 -0500
committerJames Wen <jrw2175@columbia.edu>2015-12-26 20:24:18 -0500
commit85d6ceae60cb1be0ca230c93c93bec90675e2145 (patch)
treec849adbe313a7f44acf190bfe2952f6660f521cf /lib/bundler/errors.rb
parente2b14375c3ed2ef679fed1ca894dd346cbcefcf1 (diff)
downloadbundler-85d6ceae60cb1be0ca230c93c93bec90675e2145.tar.gz
Add original error context info to GemRequireError message
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