[zypp-commit] r6171 - /trunk/libzypp/zypp/repo/RepoProvideFile.cc
Author: dmacvicar Date: Tue Jul 24 14:34:59 2007 New Revision: 6171 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6171&view=rev Log: - better error message Modified: trunk/libzypp/zypp/repo/RepoProvideFile.cc Modified: trunk/libzypp/zypp/repo/RepoProvideFile.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/RepoProvideFile.cc?rev=6171&r1=6170&r2=6171&view=diff ============================================================================== --- trunk/libzypp/zypp/repo/RepoProvideFile.cc (original) +++ trunk/libzypp/zypp/repo/RepoProvideFile.cc Tue Jul 24 14:34:59 2007 @@ -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 @@ 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 @@ } } // 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 } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org
participants (1)
-
dmacvicar@svn.opensuse.org