mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Add more explicit warn when manifest parsing fail.
This commit is contained in:
parent
1887e31f18
commit
0d463a3794
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ def check_manifest(manifest):
|
|||
with open(manifest, encoding='utf-8') as data_file:
|
||||
manifest = json.loads(data_file.read())
|
||||
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", \
|
||||
"maintainer", "multi_instance", "services", "arguments")
|
||||
while (i < len(fields)):
|
||||
|
|
Loading…
Reference in a new issue