function createInvalidReporterError(message, reporter) {
    var err = new TypeError(message);
    err.code = constants$4.INVALID_REPORTER;
    err.reporter = reporter;
    return err;
  }
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