diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-04 10:35:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-04 12:19:13 +0100 |
commit | 83b01091499e047b004f16f4716f098741e66634 (patch) | |
tree | 6bb68bc781b75865cee118df228f7e66fd674f90 /scripts | |
parent | 0118f01787eaa91ec2760d0bb8540efadf5c2510 (diff) | |
download | poky-83b01091499e047b004f16f4716f098741e66634.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.
(From OE-Core rev: 06079240e4eb0a3e1f528f6c8d6f3ea20754afee)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/send-error-report | 2 |
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): | |||
140 | try: | 140 | try: |
141 | response = urllib.request.urlopen(req) | 141 | response = urllib.request.urlopen(req) |
142 | except urllib.error.HTTPError as e: | 142 | except urllib.error.HTTPError as e: |
143 | logging.error(e.reason) | 143 | logging.error(str(e)) |
144 | sys.exit(1) | 144 | sys.exit(1) |
145 | 145 | ||
146 | print(response.read().decode('utf-8')) | 146 | print(response.read().decode('utf-8')) |