mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-25 22:36:13 +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')
|
details = e.headers.get('X-Opensuse-Errorcode')
|
||||||
if details:
|
if details:
|
||||||
print(details, file=sys.stderr)
|
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:
|
if opts.or_revoke:
|
||||||
body = e.read()
|
|
||||||
if e.code in [ 400, 403, 404, 500 ]:
|
if e.code in [ 400, 403, 404, 500 ]:
|
||||||
print('Revoking it ...')
|
print('Revoking it ...')
|
||||||
r = change_request_state(apiurl,
|
r = change_request_state(apiurl,
|
||||||
|
Loading…
Reference in New Issue
Block a user