Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Raise the original exception when auto requiring namespaced file
Browse files Browse the repository at this point in the history
  • Loading branch information
hlidotbe committed Mar 30, 2012
1 parent b3e9c1a commit 298ed7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 298ed7e

Please sign in to comment.