app/models/importo/import.rb in importo-3.0.14 vs app/models/importo/import.rb in importo-3.0.15
- old
+ new
@@ -74,10 +74,10 @@
errors.add(:original,
I18n.t("importo.errors.structure_invalid",
invalid_headers: importer.invalid_header_names.join(", ")))
end
rescue => e
- errors.add(:original, I18n.t("importo.errors.parse_error", error: e.message))
+ errors.add(:original, I18n.t("importo.errors.parse_error", error: e.message)) unless state == "failed"
end
def importer
@importer ||= "#{kind.camelize}Importer".constantize.new(self)
end