update certificate error messages

This commit is contained in:
Quincy Larson
2016-01-04 02:01:38 -06:00
parent a762bd474b
commit 3743b8ddf6

View File

@ -262,7 +262,7 @@ module.exports = function(app) {
(user) => { (user) => {
if (!user) { if (!user) {
req.flash('errors', { req.flash('errors', {
msg: `404: We couldn't find the user ${username}` msg: `404: We couldn't find the user with the username ${username}`
}); });
return res.redirect('/'); return res.redirect('/');
} }
@ -270,7 +270,7 @@ module.exports = function(app) {
req.flash('errors', { req.flash('errors', {
msg: dedent` msg: dedent`
This user needs to link GitHub with their account This user needs to link GitHub with their account
in order to display this certificate to the public. in order for others to be able to view their certificate.
` `
}); });
return res.redirect('back'); return res.redirect('back');
@ -278,9 +278,9 @@ module.exports = function(app) {
if (user.isLocked) { if (user.isLocked) {
req.flash('errors', { req.flash('errors', {
msg: dedent` msg: dedent`
${username} has chosen to hide their work from the public. ${username} has chose to make their profile
They need to unhide their work in order for this certificate to private. They will need to make their profile public
be verifiable. in order for others to be able to view their certificate.
` `
}); });
return res.redirect('back'); return res.redirect('back');
@ -288,7 +288,7 @@ module.exports = function(app) {
if (!user.isHonest) { if (!user.isHonest) {
req.flash('errors', { req.flash('errors', {
msg: dedent` msg: dedent`
${username} has not agreed to our Academic Honesty Pledge yet. ${username} has not yet agreed to our Academic Honesty Pledge.
` `
}); });
return res.redirect('back'); return res.redirect('back');