From f3954d374d33d53da3747f17a7019e63a0a7aa97 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 3 Dec 2013 09:35:02 +0000 Subject: [PATCH] Add error reporting for the syncer module Things were failing silently. --- core/modules/syncer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/modules/syncer.js b/core/modules/syncer.js index d86cea3c2..7a1e90ace 100644 --- a/core/modules/syncer.js +++ b/core/modules/syncer.js @@ -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