diff options
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -218,6 +218,7 @@ You can use `i` command instead of `install`. gem_version ||= options[:version] domain = options[:domain] domain = :local unless options[:suggest_alternate] begin install_gem gem_name, gem_version @@ -225,11 +226,11 @@ You can use `i` command instead of `install`. alert_error "Error installing #{gem_name}:\n\t#{e.message}" exit_code |= 1 rescue Gem::GemNotFoundException => e - show_lookup_failure e.name, e.version, e.errors, domain exit_code |= 2 rescue Gem::UnsatisfiableDependencyError => e - show_lookup_failure e.name, e.version, e.errors, domain, "'#{gem_name}' (#{gem_version})" exit_code |= 2 |