From 81b72c5154430076dfc889f55f58ca2402497ea1 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Wed, 8 Nov 2017 13:50:14 -0500 Subject: layers: Return an error when generator scripts fail. Currently the scripts would abort with an error message, but not an OS error code. Adding an error code allows build systems to correctly detect the script failure as a failed build step. Change-Id: I142a6215a3c02e6a880bfce0c3aba2c3c8fc4ff1 --- scripts/object_tracker_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/object_tracker_generator.py') diff --git a/scripts/object_tracker_generator.py b/scripts/object_tracker_generator.py index 5106bb46..33c8b3e7 100644 --- a/scripts/object_tracker_generator.py +++ b/scripts/object_tracker_generator.py @@ -246,7 +246,7 @@ class ObjectTrackerOutputGenerator(OutputGenerator): break if self.vuid_file == None: print("Error: Could not find vk_validation_error_messages.h") - quit() + sys.exit(1) # # Check if the parameter passed in is optional def paramIsOptional(self, param): -- cgit v1.2.3