diff --git a/lib/acts_as_csv_import/hook.rb b/lib/acts_as_csv_import/hook.rb index c67f8b4..dda5df1 100644 --- a/lib/acts_as_csv_import/hook.rb +++ b/lib/acts_as_csv_import/hook.rb @@ -31,7 +31,10 @@ module ActsAsCsvImport::Hook end - n.save + if n.save + else + puts n.errors.messages + end import_csv.import_csv_elements << ImportCsvElement.new(:element => n)