Attach the problematic data to the exception for debugging
authorMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 08:34:43 +0000 (08:34 -0000)
committerMarius Mauch <genone@gentoo.org>
Wed, 10 Jan 2007 08:34:43 +0000 (08:34 -0000)
svn path=/main/trunk/; revision=5513

pym/portage_dep.py

index 0a103841936767086d47af3c618d59ee6b025517..0cb49691db886792126ce5123ee0f12003e2cfb7 100644 (file)
@@ -27,7 +27,7 @@ def cpvequal(cpv1, cpv2):
        split2 = catpkgsplit(cpv2)
        
        if not split1 or not split2:
-               raise portage_exception.PortageException("Invalid data, parameter was not a CPV")
+               raise portage_exception.PortageException("Invalid data '%s, %s', parameter was not a CPV" % (cpv1, cpv2))
        
        if split1[0] != split2[0]:
                return False