From: Ian Jackson Date: Mon, 24 Apr 2017 12:20:29 +0000 (+0100) Subject: better message from client on http errors X-Git-Tag: hippotat/1.0.0~55^2~26 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=7ec61cc0d1b67ffaf5e5e68a43b8aa5a1dfeb43a better message from client on http errors Signed-off-by: Ian Jackson --- diff --git a/hippotat b/hippotat index f9395f2..248538e 100755 --- a/hippotat +++ b/hippotat @@ -152,7 +152,8 @@ class Client(): cl.log(DBG.HTTP_CTRL, 'req_err ' + str(err), idof=req) if isinstance(err, twisted.python.failure.Failure): err = err.getTraceback() - print('[%#x] %s' % (id(req), err), file=sys.stderr) + print('%s[%#x] %s' % (cl.desc, id(req), err.strip('\n').replace('\n',' / ')), + file=sys.stderr) if not isinstance(cl.outstanding[req], int): raise RuntimeError('[%#x] previously %s' % (id(req), cl.outstanding[req]))