Bug 720955. (Av1) xpt.py: Report IIDs when they differ. r=ted.mielczarek.

This commit is contained in:
Serge Gautherie 2012-01-25 14:22:28 +01:00
parent 6ac7de5922
commit 894a8ab334

View File

@ -1210,14 +1210,15 @@ class Typelib(object):
else:
# Same name, different IIDs, raise an exception
raise DataError, \
"Typelibs contain definitions of interface %s"\
" with different IIDs!" % i.name
"Typelibs contain definitions of interface %s" \
" with different IIDs (%s vs %s)!" % \
(i.name, i.iid, j.iid)
elif i.iid == j.iid and i.iid != Interface.UNRESOLVED_IID:
# Same IID, different names, raise an exception
raise DataError, \
"Typelibs contain definitions of interface %s"\
" with different names (%s vs. %s)!" % \
(i.iid, i.name, j.name)
"Typelibs contain definitions of interface %s" \
" with different names (%s vs %s)!" % \
(i.iid, i.name, j.name)
if not merged:
# No partially matching interfaces, so just take this interface
self.interfaces.append(i)