Commit b321a9d8 authored by wbond's avatar wbond

Fix formatting of error messages

parent 1baf9fb2
...@@ -74,10 +74,10 @@ for line in files_changed.splitlines(): ...@@ -74,10 +74,10 @@ for line in files_changed.splitlines():
raise ValueError('git diff-tree output included a line without status and filename\n\n%s' % files_changed) raise ValueError('git diff-tree output included a line without status and filename\n\n%s' % files_changed)
status, filename = parts status, filename = parts
if not filename.endswith('.json'): if not filename.endswith('.json'):
print('Skipping %s since it is not a json file') print('Skipping %s since it is not a json file' % filename)
continue continue
if not re.match(r'repository/(\w|0-9)\.json$', filename) and filename != 'channel.json': if not re.match(r'repository/(\w|0-9)\.json$', filename) and filename != 'channel.json':
print('Skipping %s since is not a json file that specifies packages or repositories') print('Skipping %s since is not a json file that specifies packages or repositories' % filename)
if status != 'M': if status != 'M':
raise ValueError('Unsure how to test a change that adds or removes a file, aborting') raise ValueError('Unsure how to test a change that adds or removes a file, aborting')
filenames.append(filename) filenames.append(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment