When requiring a gem that contains a dash the original exception is swallowed #1807

Closed
wants to merge 1 commit into from
View
2 lib/bundler/runtime.rb
@@ -74,7 +74,7 @@ def require(*groups)
Kernel.require namespaced_file
rescue LoadError
REGEXPS.find { |r| r =~ e.message }
- raise if dep.autorequire || $1.gsub('-', '/') != namespaced_file
+ raise e if dep.autorequire || $1.gsub('-', '/') != namespaced_file
end
else
REGEXPS.find { |r| r =~ e.message }