fix: unhelpful error message for invite link user creation (#4621)

* remove the hardcoded generic message instead of the actual validation error

* lint

---------

Co-authored-by: shatfield4 <seanhatfield5@gmail.com>
Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
Neha Prasad 2025-11-20 03:07:37 +05:30 committed by GitHub
parent 22c619586b
commit b86aca765b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,9 +56,7 @@ function inviteEndpoints(app) {
});
if (!user) {
console.error("Accepting invite:", error);
response
.status(200)
.json({ success: false, error: "Could not create user." });
response.status(200).json({ success: false, error });
return;
}