Customizations/XML: clearer error reporting when encountering a duplicate value for an AttributeEnum

SVN:trunk[3699]
This commit is contained in:
Romain Quetiez
2015-08-26 15:25:55 +00:00
parent 20815f1a91
commit 138423aeec

View File

@@ -1431,7 +1431,7 @@ class MFElement extends DOMElement
if (array_key_exists($key, $res))
{
// Houston!
throw new DOMFormatException("Tag ".$oItem->getNodePath().", id '$key' already used!!!");
throw new DOMFormatException("Tag ".MFDocument::GetItopNodePath($oItem).", id '$key' already used!!!");
}
$res[$key] = $oItem->GetNodeAsArrayOfItems();
}