hlfan left a comment (openstreetmap/openstreetmap-website#6724)
I was thinking of something like
```js
throw new Error("Response not OK", { cause: {
status: response.status,
statusText: response.statusText,
text: await response.text()
} });
```
and handle that in the `catch` block in the vicinity of this code
https://github.com/openstreetmap/openstreetmap-website/blob/70c2269f5b9c7112998d6443c038591f23763425/app/assets/javascripts/index/query.js#L243
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6724#issuecomment-3778963538
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/6724/[email protected]>_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev