nicer error messages

This commit is contained in:
Maximilian Hils 2015-09-11 00:49:37 +02:00
parent d1bc966e5b
commit 30f0ee40c5

View File

@ -116,7 +116,7 @@ class ConnectionHandler(object):
except Kill:
self.log("Connection killed", "info")
except ProtocolException as e:
self.log(e, "info")
self.log(repr(e), "info")
# If an error propagates to the topmost level,
# we send an HTTP error response, which is both
# understandable by HTTP clients and humans.