summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/generate_index_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/generate_index_command.rb')
-rw-r--r--lib/rubygems/commands/generate_index_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/generate_index_command.rb b/lib/rubygems/commands/generate_index_command.rb
index 01f1f88405..0b677b73a9 100644
--- a/lib/rubygems/commands/generate_index_command.rb
+++ b/lib/rubygems/commands/generate_index_command.rb
@@ -68,7 +68,7 @@ Marshal::MINOR_VERSION constants. It is used to ensure compatibility.
if not File.exist?(options[:directory]) or
not File.directory?(options[:directory]) then
- alert_error "unknown directory name #{directory}."
+ alert_error "unknown directory name #{options[:directory]}."
terminate_interaction 1
else
indexer = Gem::Indexer.new options.delete(:directory), options