summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCadence Ember <cadence@disroot.org>2025-11-13 15:57:12 +1300
committerCadence Ember <cadence@disroot.org>2025-11-13 15:57:12 +1300
commite332786fd0d804c71283d7fb15409ff34922caaa (patch)
tree87ca0e383df3426bd606a52e44015c795df9b240 /src
parentTry raising errors for failed media (diff)
downloadout-of-your-element-e332786fd0d804c71283d7fb15409ff34922caaa.tar.xz
forgot an await
Diffstat (limited to 'src')
-rw-r--r--src/matrix/api.js2
1 files changed, 1 insertions, 1 deletions
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)