Compare commits
1 commit
e8bb63dd3a
...
743fec6e69
Author | SHA1 | Date | |
---|---|---|---|
743fec6e69 |
1 changed files with 1 additions and 1 deletions
|
@ -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}`})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue