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 3805c92 commit a2c7a79
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, `${err}\n${err.stack}`);
throw error(500, `${err.stack}\nmeeting schema: ${meeting}`);
}
}

0 comments on commit a2c7a79

Please sign in to comment.