From 0c9f532e36b741055500e7c67e4fa00dbe0da842 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 10 Nov 2020 14:08:16 +0100 Subject: [PATCH] Better manifest syntax issue handling --- package_linter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 9632807..7332b1e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -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"), {})