X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e5782f5795b5e22cae191c2956d18defce6dd66..3549d8900fae286019f9a4ad89d860e4eda76fb6:/app/models/way.rb?ds=inline diff --git a/app/models/way.rb b/app/models/way.rb index b2bdfb39b..341bc6e3e 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -222,7 +222,7 @@ class Way < ActiveRecord::Base def create_with_history(user) check_create_consistency(self, user) if !self.preconditions_ok? - raise OSM::APIPreconditionsFailedError.new + raise OSM::APIPreconditionFailedError.new end self.version = 0 self.visible = true