summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2018-01-12 21:35:11 -0800
committerSamuel Giddins <segiddins@segiddins.me>2018-01-12 21:35:11 -0800
commit3916d356b179d542d9b529b8236f3ba35752c771 (patch)
tree02d2280e1d3dd3e74b86804da7e3c8e4d8f436f0
parent26490663ad40e5a1d7f2bf4636c017933a72d272 (diff)
downloadbundler-3916d356b179d542d9b529b8236f3ba35752c771.tar.gz
[FriendlyErrors] Fallback to the original error if the friendly message raisesseg-friendly-error-fallback
This would have made diagnosing https://github.com/bundler/bundler/issues/6220 much easier
-rw-r--r--lib/bundler/friendly_errors.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb
index f624185773..ae3299a7c8 100644
--- a/lib/bundler/friendly_errors.rb
+++ b/lib/bundler/friendly_errors.rb
@@ -45,6 +45,8 @@ module Bundler
"Alternatively, you can increase the amount of memory the JVM is able to use by running Bundler with jruby -J-Xmx1024m -S bundle (JRuby defaults to 500MB)."
else request_issue_report_for(error)
end
+ rescue
+ raise error
end
def exit_status(error)