From d25cf4fd6d441a3b7700abe9de5d415f766a0a1f Mon Sep 17 00:00:00 2001 From: Minh Nguyen <64875104+MinhxNguyen7@users.noreply.github.com> Date: Fri, 31 May 2024 21:27:05 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20print=20server=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/api/create/+server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/api/create/+server.ts b/src/routes/api/create/+server.ts index db903e2b..253e1f4c 100644 --- a/src/routes/api/create/+server.ts +++ b/src/routes/api/create/+server.ts @@ -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}`); } }