27 lines
579 B
Python
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()
|