This repository has been archived on 2023-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
ACMS/src/Client/errorHandler.py

27 lines
579 B
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Connection error handler for the client.
"""
from colorama import Fore
__author__ = "CaumartinYann"
__copyright__ = "Copyright 2017, ACMS"
__license__ = "GPLv3"
__status__ = "Production"
__date__ = "03/30/2017"
def clientSendErrHandler():
print(Fore.RED + "An error occurred while sending your command to the server. Closing client now.\n" + Fore.RESET)
quit()
def clientRecvErrHandler():
print(Fore.RED + "An error occurred while receiving your command from the server. Closing client now.\n" + Fore.RESET)
quit()