From c2f085a1bb5aad1e226cdb00271c66b6877b8b29 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel Date: Tue, 25 Oct 2011 10:14:20 -0600 Subject: [PATCH] fix broken error message, failure to complete email verification is not a hard error, but a warning. closes #455 --- browserid/lib/wsapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browserid/lib/wsapi.js b/browserid/lib/wsapi.js index 9cd1bf8b0..9c75fdbfc 100644 --- a/browserid/lib/wsapi.js +++ b/browserid/lib/wsapi.js @@ -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) @@ -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 });