From 898a3ea077f154bd6dbce98f2240ab2b318d1b00 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 4 Nov 2007 20:57:12 +0000 Subject: [PATCH] Make exception strings more informative. svn path=/main/trunk/; revision=8426 --- pym/portage/manifest.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pym/portage/manifest.py b/pym/portage/manifest.py index ac08e5fb1..93182f764 100644 --- a/pym/portage/manifest.py +++ b/pym/portage/manifest.py @@ -453,9 +453,12 @@ class Manifest(object): ps = portage.versions.pkgsplit(pf) cpv = "%s/%s" % (cat, pf) if not ps: - raise PortagePackageException(cpv) + raise PortagePackageException( + "Invalid package name: '%s'" % cpv) if ps[0] != pn: - raise PortagePackageException(cpv) + raise PortagePackageException( + "Package name does not " + \ + "match directory name: '%s'" % cpv) cpvlist.append(cpv) elif manifest2MiscfileFilter(f): mytype = "MISC" -- 2.26.2