code: function(options, err) {
    options = options || {};
    if (options.ignoreFailures) return Promises.when.resolve();
    return when.reject(err);
  }
docs: # failWithError
  
  wrapper for converting error & rejecting with error
  
  @param {Object} options Options
  @param {Error} err error
  @returns {Promise} rejected promise