From 72103ec73022b81b12923425a42e705f9f3ddadb Mon Sep 17 00:00:00 2001 From: George Edward Bulmer Date: Sun, 11 Feb 2018 23:16:04 +0000 Subject: [PATCH] Format error type in a different way --- qutebrowser/config/configexc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/configexc.py b/qutebrowser/config/configexc.py index b7df1eceb..1444f79ab 100644 --- a/qutebrowser/config/configexc.py +++ b/qutebrowser/config/configexc.py @@ -92,7 +92,8 @@ class ConfigErrorDesc: traceback = attr.ib(None) def __str__(self): - return '{}: {} '.format(self.text, repr(self.exception)) + return '{} - {}: {} '.format(self.text, + self.exception.__class__.__name__, self.exception) def with_text(self, text): """Get a new ConfigErrorDesc with the given text appended."""