[oe-commits] Martin Jansa : send-error-report: show response
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 4 13:12:14 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: 0b8ff2231a36755a71d8bf8c7854364d69ef2df8
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0b8ff2231a36755a71d8bf8c7854364d69ef2df8
Author: Martin Jansa <martin.jansa at gmail.com>
Date: Wed Apr 2 12:25:37 2014 +0000
send-error-report: show response
* useful when debuging why it was refused by server
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/send-error-report | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/send-error-report b/scripts/send-error-report
index 0d85776..8eea3cf 100755
--- a/scripts/send-error-report
+++ b/scripts/send-error-report
@@ -53,9 +53,11 @@ def sendData(json_file, server):
print response.status, response.reason
res = response.read()
if response.status == 200:
- print res
+ print(res)
else:
- print("There was a problem submiting your data")
+ print("There was a problem submiting your data, response written in %s.response.html" % json_file)
+ with open("%s.response.html" % json_file, "w") as f:
+ f.write(res)
conn.close()
except:
print("Server connection failed")
More information about the Openembedded-commits
mailing list