From 553a9441d7c1ce64f4fa21d64de820051bdebe9c Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Wed, 14 Feb 2024 11:49:13 +1300 Subject: [PATCH] Hopefully this will log PK API failures --- d2m/actions/send-message.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/d2m/actions/send-message.js b/d2m/actions/send-message.js index 1d25430..8c26f07 100644 --- a/d2m/actions/send-message.js +++ b/d2m/actions/send-message.js @@ -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. if (!root.member) { const e = new Error("PK API did not return a member") - e["response"] = root + message["__pk_response__"] = root + console.error(root) throw e } senderMxid = await registerPkUser.syncUser(message.author, root, roomID)