def error(self, msg, wrap_text=True):
    if wrap_text:
        new_msg = (u'\n[ERROR]: %s' % msg)
        wrapped = textwrap.wrap(new_msg, self.columns)
        new_msg = (u'\n'.join(wrapped) + u'\n')
    else:
        new_msg = (u'ERROR! %s' % msg)
    if (new_msg not in self._errors):
        self.display(new_msg, color=C.COLOR_ERROR, stderr=True)
        self._errors[new_msg] = 1
def error(self, msg, wrap_text=True):
    if wrap_text:
        new_msg = (u'\n[ERROR]: %s' % msg)
        wrapped = textwrap.wrap(new_msg, self.columns)
        new_msg = (u'\n'.join(wrapped) + u'\n')
    else:
        new_msg = (u'ERROR! %s' % msg)
    if (new_msg not in self._errors):
        self.display(new_msg, color=C.COLOR_ERROR, stderr=True)
        self._errors[new_msg] = 1