lib/eco/api/common/people/entry_factory.rb in eco-helpers-1.0.5 vs lib/eco/api/common/people/entry_factory.rb in eco-helpers-1.0.6

- old
+ new

@@ -61,10 +61,13 @@ arr_hash = [] if Eco::API::Common::Session::FileManager.file_exists?(file) encoding ||= Eco::API::Common::Session::FileManager.encoding(file) file_content = File.read(file, encoding: encoding) arr_hash = @person_parser.parse(format, file_content) + else + @logger.warn("File does not exist: #{file}") end + entries(data: arr_hash) else Entries.new(data, klass: PersonEntry, factory: self) end end