diff options
author | 2010-12-11 16:52:02 +0000 | |
---|---|---|
committer | 2010-12-11 16:52:26 +0000 | |
commit | 93ad577d737b265a4fb921337ea7765a6dd2a27c (patch) | |
tree | d5cfe7dede24b332314277a097e44ec7e70b9a87 /src/clients/cave/exceptions.cc | |
parent | e7738562740e3ec68c96e8e86a582f4da000aefd (diff) | |
download | paludis-93ad577d737b265a4fb921337ea7765a6dd2a27c.tar.gz paludis-93ad577d737b265a4fb921337ea7765a6dd2a27c.tar.xz |
Better error for uninstall multiple versions
Diffstat (limited to 'src/clients/cave/exceptions.cc')
-rw-r--r-- | src/clients/cave/exceptions.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/clients/cave/exceptions.cc b/src/clients/cave/exceptions.cc index c207b2ef4..b606320c5 100644 --- a/src/clients/cave/exceptions.cc +++ b/src/clients/cave/exceptions.cc @@ -57,6 +57,13 @@ BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_pt { } +BeMoreSpecific::BeMoreSpecific(const PackageDepSpec & spec, const std::shared_ptr<const PackageIDSequence> & s, + const std::string & extra_message) throw () : + Exception("Found multiple suitable IDs matching '" + stringify(spec) + "': { '" + join(indirect_iterator(s->begin()), + indirect_iterator(s->end()), "', '") + "' }. " + extra_message) +{ +} + BadIDForCommand::BadIDForCommand(const PackageDepSpec & spec, const std::shared_ptr<const PackageID> & s, const std::string & r) throw () : Exception("Spec '" + stringify(spec) + "' resolves to ID '" + stringify(*s) + "', which " + r) |