beef up error messages

This commit is contained in:
Maximilian Hils 2014-03-26 00:51:18 +01:00
parent 3a89c84eaf
commit aab071380a

View File

@ -947,7 +947,7 @@ class HTTPHandler(ProtocolHandler, TemporaryServerChangeMixin):
err = "%s: %s" % (code, message)
else:
try:
err = str(error)
err = "%s: %s" % (error.__class__, str(error))
except:
err = error.__class__