Skip to content

Commit

Permalink
feat: ✨ print to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed May 31, 2024
1 parent 6374f04 commit 00ce4a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/create/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function POST({ request }) {
const meetingId = await insertMeeting(meeting, sortedDates);
return json({ meetingId });
} catch (err) {
console.log("Error creating meeting:", err);
console.error("Error creating meeting:", err, meeting, sortedDates);
// TODO: This is unsafe
throw error(500, `${err.stack}\nmeeting schema: ${JSON.stringify(meeting)}`);
}
Expand Down

0 comments on commit 00ce4a4

Please sign in to comment.