iron-scheduler /

Diff from to

 var Scheduler = require('iron-scheduler');
 var scheduler = Scheduler(ironOauthToken, ironProjectId, winstonLogger);;, function(err) {
+    if (err) { 
+        //handle error
+    } else {
+        //scheduler completed successfully. 
+    }
 The logger is a [winston]( logger, and is optional. If omitted you'll get console and file logging through a winston console logger; see the config.js file for details.
 The scheduledTasks parameter is an array of tasks in the same format as in the example payload above.