mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-05 10:58:07 +01:00
- fix #459292 - be more verbose if osc meta fails
This commit is contained in:
parent
ad11a87f92
commit
8ae5597788
@ -1776,6 +1776,11 @@ def edit_meta(metatype,
|
||||
error_help = "%s (%d)" % (e.headers.get('X-Opensuse-Errorcode'), e.code)
|
||||
|
||||
print >>sys.stderr, 'BuildService API error:', error_help
|
||||
# examine the error - we can't raise an exception because we might want
|
||||
# to try again
|
||||
data = e.read()
|
||||
if '<summary>' in data:
|
||||
print >>sys.stderr, data.split('<summary>')[1].split('</summary>')[0]
|
||||
input = raw_input('Try again? ([y/N]): ')
|
||||
if input != 'y' and input != 'Y':
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user