src/index.js
function throwWapper( callback ) {
  return function( resultSet ) {
    callback(
      resultSet.err || null,
      resultSet.err ? null : resultSet.result,
      ...resultSet.argument
    );
    if ( resultSet.err ) {
      throw resultSet.err;
    }
    return resultSet;
  };
}
function throwWapper( callback ) {
  return function( resultSet ) {
    callback(
      resultSet.err || null,
      resultSet.err ? null : resultSet.result,
      ...resultSet.argument
    );
    if ( resultSet.err ) {
      throw resultSet.err;
    }
    return resultSet;
  };
}
function throwWapper ( callback ) { return function ( resultSet ) { callback ( resultSet . err || null , resultSet . err ? null : resultSet . result , ... resultSet . argument ) ; if ( resultSet . err ) { throw resultSet . err ; } return resultSet ; } ; }
use in finally method, catch a error and throw this error or throw the last error
use in finally method catch a error and throw this error or throw the last error