Skip to content

Commit

Permalink
feat: return stack on error
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 committed May 31, 2024
1 parent d25cf4f commit 3805c92
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 @@ -43,6 +43,6 @@ export async function POST({ request }) {
} catch (err) {
console.log("Error creating meeting:", err);
// TODO: This is unsafe
throw error(500, `Error creating meeting: ${err}`);
throw error(500, `${err}\n${err.stack}`);
}
}

0 comments on commit 3805c92

Please sign in to comment.