Fixed error loggging
parent
efc5b43249
commit
a7e09f3d56
|
@ -270,7 +270,7 @@ router.post('/admin/user/insert', restrict, async (req, res) => {
|
|||
return;
|
||||
}
|
||||
// user already exists with that email address
|
||||
console.error(colors.red('Failed to insert user, possibly already exists: ' + err));
|
||||
console.error(colors.red('Failed to insert user, possibly already exists'));
|
||||
req.session.message = 'A user with that email address already exists';
|
||||
req.session.messageType = 'danger';
|
||||
res.redirect('/admin/user/new');
|
||||
|
|
Loading…
Reference in New Issue