Skip to content

Commit 60a40d8

Browse files
committed
add better error messages
1 parent d62b8f7 commit 60a40d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,14 @@ app.post("/register", async (req, res) => {
176176
);
177177
} catch (err) {
178178
console.error(err);
179-
res.status(500).send("Failed to send confirmation email");
179+
res.status(500).send("Failed to send confirmation email. Check if email is correct. Otherwise contact [email protected]");
180180
return;
181181
}
182182
} else {
183183
res
184184
.status(400)
185185
.send(
186-
"Account already exists but is not active, and no confirmation token found. Contact an admin for assistance."
186+
"Account already exists but is not active, and no confirmation token found. Contact [email protected] for assistance."
187187
);
188188
}
189189
} else {
@@ -196,7 +196,7 @@ app.post("/register", async (req, res) => {
196196
await sendConfirmationEmail(userEmail, req.headers.host, token);
197197
} catch (err) {
198198
console.error(err);
199-
res.status(500).send("Failed to send confirmation email");
199+
res.status(500).send("Failed to send confirmation email. Check if email is correct. Otherwise contact [email protected]");
200200
return;
201201
}
202202

0 commit comments

Comments
 (0)