Skip to content

Commit

Permalink
fix(api): clarify error message in POST response
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont committed Jul 2, 2024
1 parent ccae7e8 commit bdb37f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/messages/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export async function POST(request: Request) {
return Response.json({ success: true, result });
} catch (error) {
console.error(error);
return Response.json({ success: false, error: error });
return Response.json({ success: false, error: 'Failed to trigger AI digest' });
}
}

0 comments on commit bdb37f3

Please sign in to comment.