From b86aca765b81b761c670a56c11f11a578d1f2517 Mon Sep 17 00:00:00 2001 From: Neha Prasad Date: Thu, 20 Nov 2025 03:07:37 +0530 Subject: [PATCH] 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 Co-authored-by: Timothy Carambat --- server/endpoints/invite.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/endpoints/invite.js b/server/endpoints/invite.js index 9a05ed7c..f33ba450 100644 --- a/server/endpoints/invite.js +++ b/server/endpoints/invite.js @@ -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; }