1
0
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:
Adrian Schröter 2014-02-04 14:35:30 +01:00
parent 2c6415264d
commit 98a625e89e

View File

@ -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 ]: