mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-22 21:16:16 +01:00
- show also error details on request accept error
This commit is contained in:
parent
2c6415264d
commit
98a625e89e
@ -2297,6 +2297,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
print('Result of change request state: %s' % r)
|
||||
except HTTPError as e:
|
||||
print(e, file=sys.stderr)
|
||||
details = e.headers.get('X-Opensuse-Errorcode')
|
||||
if details:
|
||||
print(details, file=sys.stderr)
|
||||
if opts.or_revoke:
|
||||
body = e.read()
|
||||
if e.code in [ 400, 403, 404, 500 ]:
|
||||
|
Loading…
Reference in New Issue
Block a user