app/models/importo/import.rb in importo-3.0.16 vs app/models/importo/import.rb in importo-3.0.17
- old
+ new
@@ -74,10 +74,11 @@
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)) unless state == "failed"
+ Rails.logger.info "Importo failed excpetion: #{e.message} backtrace #{e.backtrace.join(";")}"
+ errors.add(:original, I18n.t("importo.errors.parse_error", error: e.message))
end
def importer
@importer ||= "#{kind.camelize}Importer".constantize.new(self)
end