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:
parent
22c619586b
commit
b86aca765b
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user