def parse_message(self, message):

        error_message = message['message']
        line = message['line'] - 1
        col = message['col']

        # set error and warning flags based on message type
        error = None
        warning = None
        if message['type'] == 'error':
            error = True
            warning = False
        elif message['type'] == 'warning':
            error = False
            warning = True
        elif message['type'] == 'info':
            # ignore info messages by setting message to None
            message = None

        persist.debug('message -- msg:"{}", line:{}, col:{}, error: {}, warning: {}, message_obj:{}'.format(error_message, line, col, error, warning, message))

        return message, line, col, error, warning, error_message, None
Parse message object into standard elements of an error and return them.
dataset/ETHPy150Open mmaday/SublimeLinter-contrib-htmlhint/linter.py/Htmlhint.parse_message