fix: proper error message when login with wechat fails (#4000)

* fix typo

it should be weixin not qq.

* change error message from weixin to wechat

* remove unnecessary check
This commit is contained in:
RiverAge
2017-07-08 20:29:02 +08:00
committed by Florent Vilmart
parent 9d6b4f4cc4
commit a26e4c7470
2 changed files with 3 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ function validateAuthData(authData) {
if (data.errcode == 0) {
return;
}
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'qq auth is invalid for this user.');
throw new Parse.Error(Parse.Error.OBJECT_NOT_FOUND, 'wechat auth is invalid for this user.');
});
}
@@ -34,7 +34,7 @@ function graphRequest(path) {
resolve(data);
});
}).on('error', function () {
reject('Failed to validate this access token with weixin.');
reject('Failed to validate this access token with wechat.');
});
});
}