def METHOD_NAME(gateway, account, error):
    print('\033[31m {} -> {} 原因: {} \033[0m\n'.format(gateway, account, error))
    gateway.set_connectivity(Connectivity.ERR)
    if not account:
        return
    account.set_connectivity(Connectivity.ERR)