validateConfig = (config, configPath, logger) => {
  try {
    return validateConfigLogic(config, configPath, logger)
  } catch (error) {
    logger.error(failedToParseConfig(configPath, error))
    throw error
  }
}
Runs config validation. Throws error if the config is not valid.
@param {Object} config
@param {string} configPath
@param {Logger} logger
@returns {Object} config