def Error(message, toline):
    """
    This function display an error message. After such a message
    SpArtan must quit

    Paramters:
    ---------
    message:    str,Message to be displayed
    toline:     str,Carriage return or not before the message(Yes or No)

    Returns:
    -------

    """
    if toline == 'Yes':
        print('\n' + '\x1b[1m' + '\x1b[91m' + '[ERROR]:\t' + message +
            '\x1b[0m')
    else:
        print('\x1b[1m' + '\x1b[91m' + '[ERROR]:\t' + message + '\x1b[0m')
