'Add an error caused by a node to the list of errors for pep8.'

def add_error(self, node, message=None):

    message = (message or self.CHECK_DESC)
    error = (node.lineno, node.col_offset, message, self.__class__)
    self._errors.append(error)
