1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-05-24 02:04:07 +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) {
} }
} }
}; };
http.send(data); try {
http.send(data);
} catch(ex) {
return callback("Error:" + ex);
}
$tw.notifier.display("$:/language/Notifications/Save/Starting"); $tw.notifier.display("$:/language/Notifications/Save/Starting");
return true; 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. # 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/ # 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?'' ''Is Tiddlyspot secure?''