diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index bd850967c..0d753e160 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -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__