From 66576df3f274a2d4ddecf7bc8145299d451a6aa4 Mon Sep 17 00:00:00 2001 From: Noah Onyejese <129368606+noahonyejese@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:04:16 +0200 Subject: [PATCH] fix: Log errors --- app/api/slack/events/conversations/route.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/api/slack/events/conversations/route.ts b/app/api/slack/events/conversations/route.ts index 4d1abfe..e880326 100644 --- a/app/api/slack/events/conversations/route.ts +++ b/app/api/slack/events/conversations/route.ts @@ -38,6 +38,9 @@ export const POST = async (req: NextRequest) => { ); } catch (error) { if (error instanceof Error) { + + console.log(error.message) + return new Response(JSON.stringify({ success: false, error }), { status: 400, });