Throw an exception if saving the imported trace fails.

This commit is contained in:
Tom Hughes 2007-08-19 09:11:59 +00:00
parent 9f58d17242
commit 7dbb746fde

View file

@ -211,7 +211,7 @@ class Trace < ActiveRecord::Base
self.icon_picture = gpx.get_icon(min_lat, min_lon, max_lat, max_lon)
self.size = gpx.actual_points
self.inserted = true
self.save
self.save!
end
logger.info "done trace #{id}"