lib/iron/import/excel_reader.rb in iron-import-0.8.1 vs lib/iron/import/excel_reader.rb in iron-import-0.8.2
- old
+ new
@@ -23,11 +23,11 @@
else
add_error("Unsupported #{@format.to_s.upcase} mode: #{mode}")
false
end
rescue Exception => e
- add_error("Error reading #{source}: #{e}")
+ add_exception(e)
false
end
def load_raw(scopes, &block)
@spreadsheet.sheets.each_with_index do |name, index|
@@ -45,10 +45,10 @@
end
end
rescue Exception => e
# Not sure why we'd get here, but we strive for error-freedom here, yessir.
- @importer.add_error("Error loading Excel data: #{e}")
+ add_exception(e)
end
# When true, the given sheet name or zero-based index
# is a match with our id.
def include_sheet?(scopes, name, index)
\ No newline at end of file