mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Improve error handling
This commit is contained in:
parent
e194aed449
commit
ecd45e2732
@ -172,12 +172,9 @@ TiddlyWebSyncer.prototype.logout = function(options) {
|
|||||||
},
|
},
|
||||||
callback: function(err,data) {
|
callback: function(err,data) {
|
||||||
if(err) {
|
if(err) {
|
||||||
console.log("logout error",err);
|
self.showError("logout error: " + err);
|
||||||
} else {
|
} else {
|
||||||
self.getStatus(function(isLoggedIn,json) {
|
self.getStatus();
|
||||||
console.log("after logout, isLoggedIn",isLoggedIn);
|
|
||||||
});
|
|
||||||
console.log("Result of logout",data,httpRequest);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user