check_fix_white_space.py: Hint the user about --fix
When the script detects whitespace damage, hint the user that the same script can fix it.
This commit is contained in:
@@ -90,6 +90,7 @@ if __name__ == "__main__":
|
||||
for file in incorrect_files:
|
||||
print("ERROR: '{}' has white space damage".format(file))
|
||||
if incorrect_files:
|
||||
print('run %s --fix' % sys.argv[0])
|
||||
exit(1)
|
||||
except IOError as e:
|
||||
print(e) # Likely no files found
|
||||
|
||||
Reference in New Issue
Block a user