mirror of
https://github.com/cwinfo/hyperboria-peers.git
synced 2024-11-22 16:30:26 +00:00
Improve "JSON not properly formatted" error message to say how to fix it (#59)
This commit is contained in:
parent
710ece9542
commit
27b646419b
3
tests.py
3
tests.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user