From d278cedf1bd8d0750971df94224b158e4ce499ed Mon Sep 17 00:00:00 2001 From: Dan Mills Date: Fri, 27 Mar 2009 00:56:38 -0700 Subject: [PATCH] fix missing yield in createAccount --- services/sync/modules/service.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/sync/modules/service.js b/services/sync/modules/service.js index 68d9d9d1922..b80ff3d32d2 100644 --- a/services/sync/modules/service.js +++ b/services/sync/modules/service.js @@ -566,6 +566,8 @@ WeaveSvc.prototype = { createAccount: function WeaveSvc_createAccount(onComplete, username, password, email, captchaChallenge, captchaResponse) { let fn = function WeaveSvc__createAccount() { + let self = yield; + function enc(x) encodeURIComponent(x); let message = "uid=" + enc(username) + "&password=" + enc(password) + "&mail=" + enc(email) + @@ -582,7 +584,9 @@ WeaveSvc.prototype = { let resp; try { resp = yield res.post(self.cb, message); - } catch (e) {} + } catch (e) { + this._log.trace("Create account error: " + e); + } if (res.lastChannel.responseStatus != 200 && res.lastChannel.responseStatus != 201)