Use the repr() of the exception instead of str()

This commit is contained in:
George Edward Bulmer 2018-02-11 17:46:09 +00:00
parent 3170e35b31
commit 21a50cf961

View File

@ -92,7 +92,7 @@ class ConfigErrorDesc:
traceback = attr.ib(None)
def __str__(self):
return '{}: {}'.format(self.text, self.exception)
return '{}: {} '.format(self.text, repr(self.exception))
def with_text(self, text):
"""Get a new ConfigErrorDesc with the given text appended."""