modules/consentManagement.js
function cmpFailed(errMsg, hookConfig, extraArgs) {
  clearTimeout(hookConfig.timer);

  // still set the consentData to undefined when there is a problem as per config options
  if (allowAuction) {
    storeConsentData(undefined);
  }
  exitModule(errMsg, hookConfig, extraArgs);
}
function cmpFailed(errMsg, hookConfig, extraArgs) {
  clearTimeout(hookConfig.timer);

  // still set the consentData to undefined when there is a problem as per config options
  if (allowAuction) {
    storeConsentData(undefined);
  }
  exitModule(errMsg, hookConfig, extraArgs);
}
function cmpFailed ( errMsg , hookConfig , extraArgs ) { clearTimeout ( hookConfig . timer ) ; // still set the consentData to undefined when there is a problem as per config options if ( allowAuction ) { storeConsentData ( undefined ) ; } exitModule ( errMsg , hookConfig , extraArgs ) ; }
This function contains the controlled steps to perform when there's a problem with CMP.
@param {string} errMsg required; should be a short descriptive message for why the failure/issue happened.
@param {object} hookConfig contains module related variables (see comment in requestBidsHook function)
@param {object} extraArgs contains additional data that's passed along in the error/warning messages for easier debugging
This function contains the controlled steps to perform when there s a problem with CMP .