Bug 1141858 - Fix error message for unexpected extended attribute on dictionary members. r=bzbarsky

This commit is contained in:
Cameron McCormack 2015-03-14 16:34:40 +11:00
parent 6b6684aace
commit fcd38bba49

View File

@ -3540,7 +3540,9 @@ class IDLArgument(IDLObjectWithIdentifier):
elif identifier == "TreatNonCallableAsNull":
self._allowTreatNonCallableAsNull = True
else:
raise WebIDLError("Unhandled extended attribute on an argument",
raise WebIDLError("Unhandled extended attribute on %s" %
("a dictionary member" if self.dictionaryMember else
"an argument"),
[attribute.location])
def isComplete(self):