Relocate use of ERROR to display class, to avoid doubling up

This commit is contained in:
James Cammarata 2016-01-19 12:09:04 -05:00
commit b1223746cd
3 changed files with 11 additions and 11 deletions

View file

@ -261,7 +261,7 @@ class Display:
wrapped = textwrap.wrap(new_msg, self.columns)
new_msg = u"\n".join(wrapped) + u"\n"
else:
new_msg = msg
new_msg = u"ERROR! " + msg
if new_msg not in self._errors:
self.display(new_msg, color=C.COLOR_ERROR, stderr=True)
self._errors[new_msg] = 1