@mmd-osm commented on this pull request.
> @@ -277,7 +278,19 @@ L.OSM.Map = L.Map.extend({
headers: { accept: "application/json" },
signal: this._objectLoader.signal
})
- .then(response => response.json())
+ .then(async response => {
+ if (response.ok) {
+ return response.json();
+ }
+
+ const status = response.statusText || response.status;
+ if (response.status !== 400 && response.status !== 509) {
No, this will not work and only change the error text itself.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6353#discussion_r2306257140
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6353/review/3163265...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev