From b067a03f27be6f1d7db549ad62246b6e6e0c5940 Mon Sep 17 00:00:00 2001 From: Stefan Lance Date: Fri, 11 Sep 2015 11:51:08 -0500 Subject: Add exception subclass --- lib/bundler/source/rubygems.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1