diff options
Diffstat (limited to 'lib/rubygems/doctor.rb')
-rw-r--r-- | lib/rubygems/doctor.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rubygems/doctor.rb b/lib/rubygems/doctor.rb index 2cb8901b4d..0aa0f7b79f 100644 --- a/lib/rubygems/doctor.rb +++ b/lib/rubygems/doctor.rb @@ -27,10 +27,13 @@ class Gem::Doctor ['gems', ''], ] - raise 'Update REPOSITORY_EXTENSION_MAP' unless - Gem::REPOSITORY_SUBDIRECTORIES.sort == + missing = + Gem::REPOSITORY_SUBDIRECTORIES.sort - REPOSITORY_EXTENSION_MAP.map { |(k,_)| k }.sort + raise "Update REPOSITORY_EXTENSION_MAP, missing: #{missing.join ', '}" unless + missing.empty? + ## # Creates a new Gem::Doctor that will clean up +gem_repository+. Only one # gem repository may be cleaned at a time. |