Hopefully this will log PK API failures
This commit is contained in:
parent
310bf2282c
commit
553a9441d7
1 changed files with 2 additions and 1 deletions
|
@ -39,7 +39,8 @@ async function sendMessage(message, guild, row) {
|
||||||
// Member is null if member was deleted. We just got this message, so member surely exists.
|
// Member is null if member was deleted. We just got this message, so member surely exists.
|
||||||
if (!root.member) {
|
if (!root.member) {
|
||||||
const e = new Error("PK API did not return a member")
|
const e = new Error("PK API did not return a member")
|
||||||
e["response"] = root
|
message["__pk_response__"] = root
|
||||||
|
console.error(root)
|
||||||
throw e
|
throw e
|
||||||
}
|
}
|
||||||
senderMxid = await registerPkUser.syncUser(message.author, root, roomID)
|
senderMxid = await registerPkUser.syncUser(message.author, root, roomID)
|
||||||
|
|
Loading…
Reference in a new issue