diff --git a/backend/routes/users.js b/backend/routes/users.js index 30e2886297aa16ed13bb4ef4d73d5cb20cb0ac25..1d698d1810c8257e4c090288b24fe05e43376da3 100644 --- a/backend/routes/users.js +++ b/backend/routes/users.js @@ -21,6 +21,7 @@ router.post("/new", function (req, res) { res.status(201).json(newDocument); }) .catch(function (error) { + console.error(error); if (error.code === 11000) { res.status(400).json({ message: `User with email "${newUser.email}" already exists`,