Better manifest syntax issue handling

This commit is contained in:
Alexandre Aubin 2020-11-10 14:08:16 +01:00
parent f6b9acc401
commit 0c9f532e36

View file

@ -671,7 +671,8 @@ class Manifest(TestSuite):
try:
self.manifest = json.loads(raw_manifest, object_pairs_hook=check_for_duplicate_keys)
except Exception as e:
raise Exception("Looks like there's a syntax issue in your json ? %s" % e)
print(c.FAIL + "✘ Looks like there's a syntax issue in your manifest ?\n ---> %s" % e)
sys.exit(1)
self.catalog_infos = app_list().get(self.manifest.get("id"), {})