From ecd45e2732e97eb5fd2b94857f9c545c30bde31c Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sat, 17 Nov 2012 20:31:30 +0000 Subject: [PATCH] Improve error handling --- plugins/tiddlywiki/tiddlyweb/tiddlyweb.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/tiddlywiki/tiddlyweb/tiddlyweb.js b/plugins/tiddlywiki/tiddlyweb/tiddlyweb.js index fab3a13ab..c5af0c245 100644 --- a/plugins/tiddlywiki/tiddlyweb/tiddlyweb.js +++ b/plugins/tiddlywiki/tiddlyweb/tiddlyweb.js @@ -172,12 +172,9 @@ TiddlyWebSyncer.prototype.logout = function(options) { }, callback: function(err,data) { if(err) { - console.log("logout error",err); + self.showError("logout error: " + err); } else { - self.getStatus(function(isLoggedIn,json) { - console.log("after logout, isLoggedIn",isLoggedIn); - }); - console.log("Result of logout",data,httpRequest); + self.getStatus(); } } });