Add more explicit messagae to build_endpoint_map's check option

This will hopefully help developers know what to do if their patch fails
this verification.

Change-Id: I01fe9ca30295c6264affdbdb773b039a744289ea
This commit is contained in:
Juan Antonio Osorio Robles 2017-02-01 23:09:03 +02:00
parent a81ccd80db
commit 2ca1624028
1 changed files with 3 additions and 2 deletions

View File

@ -280,8 +280,9 @@ def main():
try:
if options.check:
if not check_up_to_date(options.output_file, options.input_file):
print('EndpointMap template does not match input data',
file=sys.stderr)
print('EndpointMap template does not match input data. Please '
'run the build_endpoint_map.py tool to update the '
'template.', file=sys.stderr)
sys.exit(2)
else:
build_endpoint_map(options.output_file, options.input_file)