From b791f6f76a70f5b7556abf017a9c8e8405dbeb34 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 4 Nov 2007 20:59:59 +0000 Subject: [PATCH] Make exception strings more informative. (trunk r8426) svn path=/main/branches/2.1.2/; revision=8427 --- 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 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" -- 2.26.2