From: Zac Medico Date: Sun, 4 Nov 2007 20:57:12 +0000 (-0000) Subject: Make exception strings more informative. X-Git-Tag: v2.2_pre1~442 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=898a3ea077f154bd6dbce98f2240ab2b318d1b00;p=portage.git Make exception strings more informative. svn path=/main/trunk/; revision=8426 --- 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"