From aab071380adec933efe8eefc657677ecaf2fbf3b Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 26 Mar 2014 00:51:18 +0100 Subject: [PATCH] beef up error messages --- libmproxy/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__