Skip to content

Commit

Permalink
feat: ✨ print server error
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed May 31, 2024
1 parent aa93685 commit d25cf4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/api/create/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export async function POST({ request }) {
return json({ meetingId });
} catch (err) {
console.log("Error creating meeting:", err);
throw error(500, "Error creating meeting");
// TODO: This is unsafe
throw error(500, `Error creating meeting: ${err}`);
}
}

0 comments on commit d25cf4f

Please sign in to comment.