when we find a bad version entry, name the file
Add the filename to the error message reported when a version shows up in the wrong place in the deliverable file so that when we are editing several files we know which one has the bad data. Change-Id: I8d809e143a19c09ed0d671025f724d98646dc3c7 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -328,8 +328,8 @@ def main():
|
||||
# Make sure that new entries have been appended to the file.
|
||||
for v, nr in new_releases.items():
|
||||
if nr != deliverable_info['releases'][-1]:
|
||||
msg = ('new release %(version)s must be listed last, '
|
||||
'with one new release per patch' % nr)
|
||||
msg = ('new release %s in %s must be listed last, '
|
||||
'with one new release per patch' % (nr['version'], filename))
|
||||
print(msg)
|
||||
errors.append(msg)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user