forgot an await

This commit is contained in:
Cadence Ember
2025-11-13 15:57:12 +13:00
parent 3d34c9d653
commit e332786fd0

View File

@@ -396,7 +396,7 @@ async function getMedia(mxc, init = {}) {
...init
})
if (res.status !== 200) {
throw mreq.makeMatrixServerError(res, init)
throw await mreq.makeMatrixServerError(res, init)
}
if (init.method !== "HEAD") {
assert(res.body)