Merge "Report source of duplicate entries where possible"

This commit is contained in:
Jenkins 2015-02-20 20:19:11 +00:00 committed by Gerrit Code Review
commit d2f69bc699

View File

@ -176,8 +176,8 @@ class YamlParser(object):
.format(n))
name = dfn['name']
if name in group:
self._handle_dups("Duplicate entry found: '{0}' is "
"already defined".format(name))
self._handle_dups("Duplicate entry found in '{0}: '{1}' "
"already defined".format(fp.name, name))
group[name] = dfn
self.data[cls] = group