src/utils.js
/**
 * Simple default error listener. Will reformat the error message and
 * throw a new error.
 *
 * @param {Error} err - source for defining new error
 * @throws {Error} Throws new error
 */
Simple default error listener. Will reformat the error message and
throw a new error.

@param {Error} err - source for defining new error
@throws {Error} Throws new error
Simple default error listener . Will reformat the error message and throw a new error . @param { Error } err - source for defining new error @throws { Error } Throws new error
function makeErrorListener(reject, self, name) {
  return function(err) {
    self.errorHandled = true;
    reject(formatError(err, name));
  };
}
function makeErrorListener ( reject , self , name ) { return function ( err ) { self . errorHandled = true ; reject ( formatError ( err , name ) ) ; } ; }
Simple default error listener.
Simple default error listener .