aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 19:41:17 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-06 19:41:17 +0000
commit31e675b431d0b5719c83c1ac43b88eb74773785f (patch)
tree6b126dcf0490581cfcbed24ea6455a8986d18e5f
parentdb1fa98e58f805d659b63529aeb1ead09d7a8e23 (diff)
downloadpaludis-31e675b431d0b5719c83c1ac43b88eb74773785f.tar.gz
paludis-31e675b431d0b5719c83c1ac43b88eb74773785f.tar.xz
Might as well throw a NoSuchSyncerError rather than an InternalError if we're given a sync URL with no protocol...
-rw-r--r--paludis/portage_repository.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/portage_repository.cc b/paludis/portage_repository.cc
index 66d6f96..7a02870 100644
--- a/paludis/portage_repository.cc
+++ b/paludis/portage_repository.cc
@@ -1195,7 +1195,7 @@ PortageRepository::do_sync() const
std::string::size_type p(_imp->sync.find("://")), q(_imp->sync.find(":"));
if (std::string::npos == p)
- throw InternalError(PALUDIS_HERE, "todo: no protocol for sync"); /// \todo fixme
+ throw NoSuchSyncerError(_imp->sync);
SyncerMaker::get_instance()->find_maker(_imp->sync.substr(0, std::min(p, q)))(
_imp->location, _imp->sync.substr(q < p ? q + 1 : 0))->sync();