diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb index 0e67ed9fbc..9006a1eba8 100644 --- a/lib/bundled_gems.rb +++ b/lib/bundled_gems.rb @@ -118,7 +118,7 @@ end # If loading library is not part of the default gems and the bundled gems, warn it. class LoadError def message - if Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path] + if !defined?(Bundler) && Gem::BUNDLED_GEMS::SINCE[path] && !Gem::BUNDLED_GEMS::WARNED[path] warn path + Gem::BUNDLED_GEMS.build_message(path) end super