5
0
mirror of https://github.com/cwinfo/hyperboria-peers.git synced 2024-11-22 04:50:28 +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)
print(" %sJSON in %s has been fixed.%s" % (YELLOW, path, END))
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
hosts = peers.keys()
for host in hosts: