code: function (err) {
                  if (_.isNull(err)) {
                      // Call complete with all the args except for err
                      complete.apply(null, Array.prototype.slice.call(arguments, 1));
                  } else {
                      error(err);
                  }
              }
docs: Add a callback to the args which will call the appropriate promise handlers