From: Zac Medico Date: Sun, 4 Nov 2007 20:59:59 +0000 (-0000) Subject: Make exception strings more informative. (trunk r8426) X-Git-Tag: v2.1.3.19~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b791f6f76a70f5b7556abf017a9c8e8405dbeb34;p=portage.git Make exception strings more informative. (trunk r8426) svn path=/main/branches/2.1.2/; revision=8427 --- diff --git a/pym/portage_manifest.py b/pym/portage_manifest.py index ccd32ec67..59818adaf 100644 --- a/pym/portage_manifest.py +++ b/pym/portage_manifest.py @@ -455,9 +455,12 @@ class Manifest(object): ps = portage_versions.pkgsplit(pf) cpv = "%s/%s" % (cat, pf) if not ps: - raise portage_exception.PortagePackageException(cpv) + raise portage_exception.PortagePackageException( + "Invalid package name: '%s'" % cpv) if ps[0] != pn: - raise portage_exception.PortagePackageException(cpv) + raise portage_exception.PortagePackageException( + "Package name does not " + \ + "match directory name: '%s'" % cpv) cpvlist.append(cpv) elif manifest2MiscfileFilter(f): mytype = "MISC"