lib/dwc-archive/classification_normalizer.rb in dwc-archive-0.8.3 vs lib/dwc-archive/classification_normalizer.rb in dwc-archive-0.9.0

- old
+ new

@@ -142,10 +142,10 @@ !(authorship.empty? || row[fields[:scientificname]].index(authorship)) end def ingest_core @normalized_data = {} - raise CoreFileError.new("Darwin Core core fields must contain taxon id and scientific name") unless (@core_fields[:id] && @core_fields[:scientificname]) + raise DarwinCore::CoreFileError.new("Darwin Core core fields must contain taxon id and scientific name") unless (@core_fields[:id] && @core_fields[:scientificname]) @dwc.core.read do |rows| rows[1].each do |error| @error_names << { :data => error, :error => :reading_or_encoding_error } end rows[0].each do |r|