aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-04 10:35:47 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-04 12:19:04 +0100
commit06079240e4eb0a3e1f528f6c8d6f3ea20754afee (patch)
tree66b0e1a61e2c46b7d91051ea20dc88890536da80 /scripts
parent59a0a05235d80c86251cf45d7142bfc57f2e70d2 (diff)
downloadopenembedded-core-contrib-06079240e4eb0a3e1f528f6c8d6f3ea20754afee.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/send-error-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report
index cd2e7f4b9d..02014ba9d8 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'))