Skip to content

Commit

Permalink
server: send details of zod validation errors (#1763)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Apr 30, 2024
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
Expand Up @@ -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 {
Expand Down

0 comments on commit f1986bf

Please sign in to comment.