Skip to content

Commit

Permalink
fix: Log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
noahonyejese committed Oct 1, 2024
1 parent 007c57f commit 66576df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/api/slack/events/conversations/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 66576df

Please sign in to comment.