From a3684394a1751b5ab6d0e6fc820c00c587875908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 11 Apr 2016 10:45:40 +0200 Subject: [PATCH] show branch errors again --- osc/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/core.py b/osc/core.py index 20fdad3c..f8463a43 100644 --- a/osc/core.py +++ b/osc/core.py @@ -5084,11 +5084,11 @@ def branch_pkg(apiurl, src_project, src_package, nodevelproject=False, rev=None, if missingok: if root and root.get('code') == "not_missing": raise oscerr.NotMissing("Package exists already via project link, but link will point to given project") - if not return_existing: - raise summary = root.find('summary') if summary is None: raise oscerr.APIError('unexpected response:\n%s' % ET.tostring(root, encoding=ET_ENCODING)) + if not return_existing: + raise oscerr.APIError('failed to branch: %s' % summary.text) m = re.match(r"branch target package already exists: (\S+)/(\S+)", summary.text) if not m: e.msg += '\n' + summary.text