163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
# File 'lib/traject/command_line.rb', line 163
def load_configuration_files!(my_indexer, conf_files)
conf_files.each do |conf_path|
begin
my_indexer.load_config_file(conf_path)
rescue Errno::ENOENT, Errno::EACCES => e
self.console.puts "Could not read configuration file '#{conf_path}', exiting..."
exit 2
rescue Traject::Indexer::ConfigLoadError => e
self.console.puts "\n"
self.console.puts e.message
self.console.puts e.config_file_backtrace
self.console.puts "\n"
self.console.puts "Exiting..."
exit 3
end
end
end
|