def _get_mysql_error():
    return sys.modules[
        __salt__['test.ping'].__module__
    ].__context__.pop('mysql.error', None)
Look in module context for a MySQL error. Eventually we should make a less
dataset/ETHPy150Open saltstack/salt/salt/states/mysql_user.py/_get_mysql_error