aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/send-error-report
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2014-04-02 12:25:37 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-04 11:50:05 +0100
commit0b8ff2231a36755a71d8bf8c7854364d69ef2df8 (patch)
tree90d3a49f7d5e723c89758e39994a179dfb342f2a /scripts/send-error-report
parent0b62f8b012d8a128f34bd85a26aa97ea939cbf64 (diff)
downloadopenembedded-core-contrib-0b8ff2231a36755a71d8bf8c7854364d69ef2df8.tar.gz
send-error-report: show response
* useful when debuging why it was refused by server Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/send-error-report')
-rwxr-xr-xscripts/send-error-report6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report
index 0d857763405..8eea3cfebb0 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")