improved refreshMetadata() message and doc
authorJan Kupec <jkupec@suse.cz>
Mon, 30 Jul 2007 14:04:40 +0000 (14:04 +0000)
committerJan Kupec <jkupec@suse.cz>
Mon, 30 Jul 2007 14:04:40 +0000 (14:04 +0000)
zypp/RepoManager.cc
zypp/RepoManager.h

index 0879683..c91dba9 100644 (file)
@@ -455,7 +455,7 @@ namespace zypp
       }
     } // for every url
     ERR << "No more urls..." << endl;
-    ZYPP_THROW(RepoException("Cant refresh metadata"));
+    ZYPP_THROW(RepoException(_("Valid metadata not found at specified URL(s)")));
   }
 
   ////////////////////////////////////////////////////////////////////////////
index 678991f..d9199f4 100644 (file)
@@ -117,6 +117,8 @@ namespace zypp
     * \throws repo::RepoNoUrlException if no urls are available.
     * \throws repo::RepoNoAliasException if can't figure an alias
     * \throws repo::RepoUnknownTypeException if the metadata is unknown
+    * \throws repo::RepoException if the repository is invalid
+    *         (no valid metadata found at any of baseurls) 
     * \throws Exception on unknown error.
     */
    void refreshMetadata( const RepoInfo &info,