summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bundler/source/rubygems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb
index 925b6e4e42..508922f04d 100644
--- a/lib/bundler/source/rubygems.rb
+++ b/lib/bundler/source/rubygems.rb
@@ -483,7 +483,7 @@ module Bundler
# @return [Pathname] The global cache path.
#
def download_cache_path(*paths)
- raise "Caching is only possible for sources with one URL" if remotes.size > 1
+ raise InstallError, "Caching is only possible for sources with one URL" if remotes.size > 1
uri = remotes.first
return unless uri
port = uri.port unless uri.port == 80