Fixed error loggging

master
Mark Moffat 2019-11-09 10:51:07 +10:30
parent efc5b43249
commit a7e09f3d56
1 changed files with 1 additions and 1 deletions

View File

@ -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');