diff --git a/src/controllers/index.js b/src/controllers/index.js index c5549a7357..a53c48a627 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -152,7 +152,7 @@ Controllers.register = async function (req, res, next) { try { await user.verifyInvitation(req.query); } catch (e) { - res.render('400', { + return res.render('400', { error: e.message, }); }