lib/backends/errback.js
function(done) {
  return {
    success: function(res) {
      done(null, res);
    },
    error: function(res, err) {
      done(err);
    }
  };
}
function(done) {
  return {
    success: function(res) {
      done(null, res);
    },
    error: function(res, err) {
      done(err);
    }
  };
}
function ( done ) { return { success : function ( res ) { done ( null , res ) ; } , error : function ( res , err ) { done ( err ) ; } } ; }
The opposite of wrapOptions, this helper wraps an errback
and returns an options object that calls the errback appropriately.

@param {Function} done
@return {Object}
The opposite of wrapOptions this helper wraps an errback and returns an options object that calls the errback appropriately .