From 2586457f54f19d4c2e2fd8d70ae8a0fea0b9513e Mon Sep 17 00:00:00 2001 From: Huanhuan Li Date: Wed, 21 May 2014 10:43:18 +0800 Subject: [PATCH] Make the error more precise Change-Id: I11879de8063534eb5a59b80edbfcd9a73aefdc5d --- plugins/backend/zypppkgmgr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py index e0b0a1b..74d364e 100644 --- a/plugins/backend/zypppkgmgr.py +++ b/plugins/backend/zypppkgmgr.py @@ -567,9 +567,11 @@ class Zypp(BackendPlugin): if download_count > 0: msger.info("Downloading packages ...") self.downloadPkgs(dlpkgs, download_count) + except CreateError, e: + raise CreateError("Package download failed: %s" %(e,)) + try: self.installPkgs(dlpkgs) - except (RepoError, RpmError): raise except Exception, e: -- 2.7.4