Hopefully this will log PK API failures

This commit is contained in:
Cadence Ember 2024-02-14 11:49:13 +13:00
parent 310bf2282c
commit 553a9441d7

View file

@ -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)