diff options
author | Stefan Lance <stefan@lances.net> | 2015-09-11 11:51:08 -0500 |
---|---|---|
committer | Stefan Lance <stefan@lances.net> | 2015-09-11 11:51:08 -0500 |
commit | b067a03f27be6f1d7db549ad62246b6e6e0c5940 (patch) | |
tree | 281e96d36330022e2e8c2d11e85455fca61baccc | |
parent | ff5c24b62bc7aa43e218f42be9aa34c9d9dd3cf3 (diff) | |
download | bundler-3975.tar.gz |
Add exception subclass3975
-rw-r--r-- | lib/bundler/source/rubygems.rb | 2 |
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 |