[openstreetmap/openstreetmap-website] handle API errors with no content (PR #7194)
Tom Hughes
notifications at github.com
Mon Jun 29 16:20:20 UTC 2026
tomhughes left a comment (openstreetmap/openstreetmap-website#7194)
I wonder if we want to include the numeric status when there is text? We're not very consistent at the moment as `app/assets/javascripts/index/layers/data.js`, `app/assets/javascripts/leaflet.map.js` and `app/assets/javascripts/index_modules/query.js` all do:
```js
response.statusText || response.status
```
while `app/assets/javascripts/index_modules/new_note.js` does what this does and shows both.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7194#issuecomment-4834703736
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7194/c4834703736 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260629/c76ed280/attachment.htm>
More information about the rails-dev
mailing list