From: Richard Purdie Date: Wed, 4 Jul 2018 09:35:47 +0000 (+0100) Subject: send-error-report: Fix dubious error reporting X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~17477 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06079240e4eb0a3e1f528f6c8d6f3ea20754afee;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git send-error-report: Fix dubious error reporting Currently this code prints things like: ERROR: OK which is unhelpful at best. After this change it would print: ERROR: HTTP Error 500 which at least gives us something to work on. Signed-off-by: Richard Purdie --- diff --git a/scripts/send-error-report b/scripts/send-error-report index cd2e7f4b9db..02014ba9d85 100755 --- a/scripts/send-error-report +++ b/scripts/send-error-report @@ -140,7 +140,7 @@ def send_data(data, args): try: response = urllib.request.urlopen(req) except urllib.error.HTTPError as e: - logging.error(e.reason) + logging.error(str(e)) sys.exit(1) print(response.read().decode('utf-8'))