1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-29 19:40:28 +00:00

Add error reporting for the syncer module

Things were failing silently.
This commit is contained in:
Jermolene 2013-12-03 09:35:02 +00:00
parent 16170ce504
commit f3954d374d

View File

@ -385,6 +385,9 @@ Syncer.prototype.processTaskQueue = function() {
this.taskInProgress[task.title] = task;
// Dispatch the task
this.dispatchTask(task,function(err) {
if(err) {
console.log("Sync error while processing '" + task.title + "':\n" + err);
}
// Mark that this task is no longer in progress
delete self.taskInProgress[task.title];
// Process the next task