5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-09-19 16:09:35 +00:00

Improve "JSON not properly formatted" error message to say how to fix it (#59)

This commit is contained in:
Finn 2016-07-16 19:56:38 -07:00 committed by GitHub
parent 710ece9542
commit 27b646419b

View File

@ -29,7 +29,8 @@ def validate(path):
outfile.write(pretty) outfile.write(pretty)
print(" %sJSON in %s has been fixed.%s" % (YELLOW, path, END)) print(" %sJSON in %s has been fixed.%s" % (YELLOW, path, END))
else: else:
print(" %sJSON in %s is NOT properly formatted.%s" % (YELLOW, path, END)) print(" %sJSON in %s is NOT properly formatted! This is really easy to fix!"
" just run tests.py --clean.%s" % (YELLOW, path, END))
formatting = False formatting = False
hosts = peers.keys() hosts = peers.keys()
for host in hosts: for host in hosts: