From 14973a35c2ae36597e68d46f99c8c8c8d11a3382 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 15 Apr 2019 19:46:30 -0600 Subject: [PATCH] Use the right error object --- src/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.js b/src/sync.js index 54853ef79..843e3cfb0 100644 --- a/src/sync.js +++ b/src/sync.js @@ -446,7 +446,7 @@ SyncApi.prototype._wasLazyLoadingToggled = async function(lazyLoadMembers) { }; SyncApi.prototype._shouldAbortSync = function(error) { - if (err.errcode === "M_UNKNOWN_TOKEN") { + if (error.errcode === "M_UNKNOWN_TOKEN") { // The logout already happened, we just need to stop. console.warn("Token no longer valid - assuming logout"); self.stop();