Skip to content

Commit c83a3e6

Browse files
committed
Log error
1 parent fbc65e7 commit c83a3e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

backend/api/src/get-private-messages.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@ export async function getChannelMessages(props: {
124124
[channelId, userId, limit, id],
125125
convertPrivateChatMessage
126126
))
127-
if (error) throw new APIError(401, 'Error getting messages')
127+
if (error) {
128+
console.error(error)
129+
throw new APIError(401, 'Error getting messages')
130+
}
128131
// console.log('final messages', data)
129132
return data
130133
}

0 commit comments

Comments
 (0)