From c83a3e631595a7e4f93f276062cb9ba2f23e1961 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Fri, 24 Oct 2025 23:03:17 +0200 Subject: [PATCH] Log error --- backend/api/src/get-private-messages.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/api/src/get-private-messages.ts b/backend/api/src/get-private-messages.ts index b44e8b27..873af9c8 100644 --- a/backend/api/src/get-private-messages.ts +++ b/backend/api/src/get-private-messages.ts @@ -124,7 +124,10 @@ export async function getChannelMessages(props: { [channelId, userId, limit, id], convertPrivateChatMessage )) - if (error) throw new APIError(401, 'Error getting messages') + if (error) { + console.error(error) + throw new APIError(401, 'Error getting messages') + } // console.log('final messages', data) return data }