Throw an exception if saving the imported trace fails.
This commit is contained in:
parent
9f58d17242
commit
7dbb746fde
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Add table
Reference in a new issue