1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

- do not hide api side error message

This commit is contained in:
Adrian Schröter 2015-07-01 09:47:53 +02:00
parent f59b60e206
commit cf9d65b09d

View File

@ -2278,14 +2278,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
body = e.read()
if e.code in [403]:
if review.by_user:
print('No permission on review by user %s' % review.by_user)
print('No permission on review by user %s:' % review.by_user)
if review.by_group:
print('No permission on review by group %s' % review.by_group)
if review.by_package:
print('No permission on review by package %s / %s' % (review.by_project, review.by_package))
elif review.by_project:
print('No permission on review by project %s' % review.by_project)
else:
print(e, file=sys.stderr)
else:
print('Request is closed, please reopen the request first before changing any reviews.')