From 3e7f355a0aee44c1b025e75eee591ba6676f6d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 15 May 2014 18:09:27 +0200 Subject: [PATCH] - show errors when request change failed --- osc/commandline.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 2b9dc11f..f2d57844 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2313,8 +2313,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. details = e.headers.get('X-Opensuse-Errorcode') if details: print(details, file=sys.stderr) + root = ET.fromstring(e.read()) + summary = root.find('summary') + if not summary is None: + print(summary.text) if opts.or_revoke: - body = e.read() if e.code in [ 400, 403, 404, 500 ]: print('Revoking it ...') r = change_request_state(apiurl,