From d2a51229dbef057ca55c682d5d66f481113e5b50 Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Tue, 24 Jul 2007 12:34:59 +0000 Subject: [PATCH] - better error message --- zypp/repo/RepoProvideFile.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/zypp/repo/RepoProvideFile.cc b/zypp/repo/RepoProvideFile.cc index 3e22b25..da73dbb 100644 --- a/zypp/repo/RepoProvideFile.cc +++ b/zypp/repo/RepoProvideFile.cc @@ -19,6 +19,7 @@ #include "zypp/repo/RepoProvideFile.h" #include "zypp/ZYppCallbacks.h" #include "zypp/MediaSetAccess.h" +#include "zypp/ZConfig.h" using std::endl; using std::set; @@ -85,7 +86,8 @@ namespace zypp url = *it; try { - + MIL << "Providing file of repo '" << info.alias() + << "' from " << url << endl; MediaSetAccess access(url); ManagedFile ret( access.provideFile(loc_r) ); @@ -136,7 +138,12 @@ namespace zypp } } // iteration over urls - ZYPP_THROW(Exception(_("No more urls in repository."))); + stringstream ss; + ss << + ZYPP_THROW(Exception(str::form(_("Can't provide file %s from repository %s", + loc_r.filename().c_str(), + info.alias().c_str() ) ) ) ); + return ManagedFile(); // not reached } -- 2.7.4