mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
- show errors when request change failed
This commit is contained in:
parent
42c357336e
commit
3e7f355a0a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user