diff --git a/src/lib/db/databaseUtils.server.ts b/src/lib/db/databaseUtils.server.ts index fb1e94e..f155499 100644 --- a/src/lib/db/databaseUtils.server.ts +++ b/src/lib/db/databaseUtils.server.ts @@ -120,8 +120,10 @@ export const insertMeeting = async (meeting: MeetingInsertSchema, meetingDates: [dbMeeting] = await db.insert(meetings).values(meeting).returning(); } catch (err) { const meetingSerialized = JSON.stringify(meeting); - console.error("Error inserting meeting=", meetingSerialized); - throw Error(`Error inserting meeting=${meetingSerialized}`); + const message = `Error creating meeting(${meetingSerialized}): ${err.message}`; + + console.error(message); + throw Error(message); } await insertMeetingDates(meetingDates, dbMeeting.id);