1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00

Added error handling to upload saver

A further fix for #251
This commit is contained in:
Jermolene 2014-09-27 10:47:31 +01:00
parent 115245a632
commit 23c2d90ee8
2 changed files with 10 additions and 2 deletions

View File

@ -64,7 +64,11 @@ UploadSaver.prototype.save = function(text,method,callback) {
}
}
};
try {
http.send(data);
} catch(ex) {
return callback("Error:" + ex);
}
$tw.notifier.display("$:/language/Notifications/Save/Starting");
return true;
};

View File

@ -14,7 +14,11 @@ You can upload an existing TiddlyWiki document from your local disc to TiddlySpo
# Click the "Save Changes" button. You should get a confirmation notification at the top right saying ''Saved wiki''. Saving can take several seconds if you're on a slow connection or working with a large wiki.
# Navigate to your TiddlySpot URL at http://{wikiname}.tiddlyspot.com/
Note that your password is sent unencrypted when using TiddlySpot. From http://faq.tiddlyspot.com/:
Note that this procedure does not work in Firefox.
!! TiddlySpot Security
Your password is sent unencrypted when using TiddlySpot. From http://faq.tiddlyspot.com/:
<<<
''Is Tiddlyspot secure?''