def _check_pillar(kwargs):
    if kwargs.get('force'):
        return True
    if '_errors' in __pillar__:
        return False
    return True
Check the pillar for errors, refuse to run the state if there are errors
dataset/ETHPy150Open saltstack/salt/salt/modules/state.py/_check_pillar