Skip to content

Commit

Permalink
fix broken error message, failure to complete email verification is n…
Browse files Browse the repository at this point in the history
…ot a hard error, but a warning. closes mozilla#455
  • Loading branch information
lloyd committed Oct 25, 2011
1 parent efb6ae7 commit c2f085a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browserid/lib/wsapi.js
Expand Up @@ -278,7 +278,7 @@ function setup(app) {

db.gotVerificationSecret(req.body.token, hash, function(err, email) {
if (err) {
logger.error("error completing the verification: " + err);
logger.warn("couldn't complete email verification: " + err);
resp.json({ success: false });
} else {
// FIXME: not sure if we want to do this (ba)
Expand Down Expand Up @@ -360,7 +360,7 @@ function setup(app) {
app.post('/wsapi/complete_email_addition', checkParams(["token"]), function(req, resp) {
db.gotVerificationSecret(req.body.token, undefined, function(e) {
if (e) {
logger.error("error completing the verification: " + e);
logger.warn("couldn't complete email verification: " + e);
resp.json({ success: false });
} else {
resp.json({ success: true });
Expand Down

0 comments on commit c2f085a

Please sign in to comment.