Skip to content

Commit

Permalink
Use the right error object
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Apr 16, 2019
1 parent b5779f8 commit 14973a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 14973a3

Please sign in to comment.