Skip to content
Browse files

Raise the original exception when auto requiring namespaced file

  • Loading branch information...
1 parent b3e9c1a commit 298ed7e8ff3001b72b8063ddba1f1950c0b0990e @hlidotbe hlidotbe committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/runtime.rb
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 }

0 comments on commit 298ed7e

Please sign in to comment.
Something went wrong with that request. Please try again.