You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/05/22 20:25:46 UTC

svn commit: r540680 - /lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb

Author: ehatcher
Date: Tue May 22 11:25:45 2007
New Revision: 540680

URL: http://svn.apache.org/viewvc?view=rev&rev=540680
Log:
Exit with message if no filename is provided

Modified:
    lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb

Modified: lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb?view=diff&rev=540680&r1=540679&r2=540680
==============================================================================
--- lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb (original)
+++ lucene/solr/trunk/client/ruby/solr-ruby/examples/delicious_library/dl_importer.rb Tue May 22 11:25:45 2007
@@ -20,6 +20,11 @@
 dl_filename = ARGV[0]
 debug = ARGV[1] == "-debug"
 
+if dl_filename == nil
+  puts "You must pass a filename as an option."
+  exit
+end
+
 source = Solr::Importer::DelimitedFileSource.new(dl_filename)
 
 # Exported column names