MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / createInvalidReporterError

Function createInvalidReporterError

misc/test-browser/mocha.js:12411–12416  ·  view source on GitHub ↗

* Creates an error object to be thrown when the reporter specified in the options was not found. * * @public * @param {string} message - Error message to be displayed. * @param {string} reporter - User-specified reporter value. * @returns {Error} instance detailing the error condition

(message, reporter)

Source from the content-addressed store, hash-verified

12409 * @returns {Error} instance detailing the error condition
12410 */
12411 function createInvalidReporterError(message, reporter) {
12412 var err = new TypeError(message);
12413 err.code = constants$4.INVALID_REPORTER;
12414 err.reporter = reporter;
12415 return err;
12416 }
12417
12418 /**
12419 * Creates an error object to be thrown when the interface specified in the options was not found.

Callers 2

mocha.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected