X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2b7a40069f7af2e72c81f9488411135f286515f9..b91b514cf22f04910c83b6dcc254908ed37d7413:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index e0e83845e..82fc835b4 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -46,6 +46,13 @@ module OSM { :text => "The supplied changeset has already been closed", :status => :conflict } end end + + # Raised when a change is expecting a changeset, but the changeset doesn't exist + class APIChangesetMissingError < APIError + def render_opts + { :text => "You need to supply a changeset to be able to make a change", :status => :conflict } + end + end # Raised when the provided version is not equal to the latest in the db. class APIVersionMismatchError < APIError