Add more explicit warn when manifest parsing fail.

This commit is contained in:
Moul 2016-02-01 23:31:33 +01:00
parent 1887e31f18
commit 0d463a3794

View file

@ -56,7 +56,7 @@ def check_manifest(manifest):
with open(manifest, encoding='utf-8') as data_file: with open(manifest, encoding='utf-8') as data_file:
manifest = json.loads(data_file.read()) manifest = json.loads(data_file.read())
print_right("Manifest syntax is good.") print_right("Manifest syntax is good.")
except: print_wrong("There is a syntax (comma) issue in manifest.json. Can't do following tests."); return except: print_wrong("There is a syntax (comma) issue in manifest.json. Can't check manifest."); return
i, fields = 0, ("name", "id", "description", "url", "license", \ i, fields = 0, ("name", "id", "description", "url", "license", \
"maintainer", "multi_instance", "services", "arguments") "maintainer", "multi_instance", "services", "arguments")
while (i < len(fields)): while (i < len(fields)):