X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/bf29550db840c97cafffbe1e836750bef6c7942d..9e354f1b0f3c79e27c5623463344342184284423:/lib/consistency_validations.rb diff --git a/lib/consistency_validations.rb b/lib/consistency_validations.rb index 8fd6c257d..6e214f902 100644 --- a/lib/consistency_validations.rb +++ b/lib/consistency_validations.rb @@ -7,7 +7,7 @@ module ConsistencyValidations # This will throw an exception if there is an inconsistency def check_consistency(old, new, user) if new.version != old.version - raise OSM::APIVersionMismatchError.new(new.version, old.version) + raise OSM::APIVersionMismatchError.new(new.id, new.class.to_s, new.version, old.version) elsif new.changeset.nil? raise OSM::APIChangesetMissingError.new elsif new.changeset.user_id != user.id