aboutsummaryrefslogtreecommitdiff
path: root/scripts/object_tracker_generator.py
diff options
context:
space:
mode:
authorJamie Madill <jmadill@chromium.org>2017-11-08 13:50:14 -0500
committerTobin Ehlis <tobine@google.com>2017-11-09 08:43:16 -0700
commit81b72c5154430076dfc889f55f58ca2402497ea1 (patch)
tree2837232358ee8ff06f6d1fdc08d3c880725b5c54 /scripts/object_tracker_generator.py
parent0a0f9755c27933320f75af3328ae08473faa32ab (diff)
downloadusermoji-81b72c5154430076dfc889f55f58ca2402497ea1.tar.xz
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
Diffstat (limited to 'scripts/object_tracker_generator.py')
-rw-r--r--scripts/object_tracker_generator.py2
1 files changed, 1 insertions, 1 deletions
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):