Compare commits

..

1 commit

Author SHA1 Message Date
743fec6e69 Cleanup 2025-08-22 21:26:47 +12:00

View file

@ -159,7 +159,7 @@ as.router.post("/api/link", defineEventHandler(async event => {
await api.joinRoom(parsedBody.matrix, null, foundVia)
} catch (e) {
if (!foundVia) {
throw createError({status: 403, message: "Unable To Join", data: "Unable to join the requested Matrix room. Please invite the bridge to the room and try again."})
throw createError({status: 403, message: "Unable To Join", data: `Unable to join the requested Matrix room. Please invite the bridge to the room and try again. (Server said: ${e.errcode} - ${e.message})`})
}
throw createError({status: 403, message: e.errcode, data: `${e.errcode} - ${e.message}`})
}