From 8ae559778871ec0bb508ff400ffb0188c8a22244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Wed, 17 Dec 2008 23:15:22 +0000 Subject: [PATCH] - fix #459292 - be more verbose if osc meta fails --- osc/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osc/core.py b/osc/core.py index f0aa60b5..17fd945a 100755 --- a/osc/core.py +++ b/osc/core.py @@ -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 '' in data: + print >>sys.stderr, data.split('')[1].split('')[0] input = raw_input('Try again? ([y/N]): ') if input != 'y' and input != 'Y': break