Record failed URL in more error messages

This commit is contained in:
Cadence Ember
2025-11-15 23:04:23 +13:00
parent 1338e6ba88
commit a2787f7b0b
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ async function getMedia(mxc, init = {}) {
...init
})
if (res.status !== 200) {
throw await mreq.makeMatrixServerError(res, init)
throw await mreq.makeMatrixServerError(res, {...init, url})
}
if (init.method !== "HEAD") {
assert(res.body)