use the right exception type, may be should be RepoMetadataException
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 19 Feb 2008 12:43:36 +0000 (12:43 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Tue, 19 Feb 2008 12:43:36 +0000 (12:43 +0000)
anyways, but not unknown typewq

zypp/RepoManager.cc

index 560b199..063bcf3 100644 (file)
@@ -753,14 +753,14 @@ namespace zypp
         }
         int ret = prog.close();
         if ( ret != 0 )
-          ZYPP_THROW(RepoUnknownTypeException(outputstr.str()));
+          ZYPP_THROW(RepoException(outputstr.str()));
 
         // We keep it.
         guard.resetDispose();
       }
       break;
       default:
-        ZYPP_THROW(Exception("Unhandled repostory type"));
+        ZYPP_THROW(RepoUnknownTypeException("Unhandled repository type"));
       break;
     }
 #if 0