diff --git a/src/matrix/api.js b/src/matrix/api.js index 6d135bd..69ef78d 100644 --- a/src/matrix/api.js +++ b/src/matrix/api.js @@ -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)