[oe-commits] [openembedded-core] 01/02: send-error-report: Fix dubious error reporting
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 4 11:19:40 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit acd3beade3f59b5aeff14a98f26972f7668c0ce3
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jul 4 10:35:47 2018 +0100
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 at linuxfoundation.org>
---
scripts/send-error-report | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/send-error-report b/scripts/send-error-report
index cd2e7f4..02014ba 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'))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list