Skip to content

Commit

Permalink
server: send details of zod validation errors (#1763)
Browse files Browse the repository at this point in the history
dyc3 authored Apr 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b3bf70f commit f1986bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api/room.ts
Original file line number Diff line number Diff line change
@@ -464,7 +464,8 @@ const errorHandler: ErrorRequestHandler = (err: Error, req, res) => {
res.status(400).json({
success: false,
error: {
name: err.name,
...err,
message: err.message,
},
});
} else {

0 comments on commit f1986bf

Please sign in to comment.