From 03e25c778adb0c83bbd8536ca7ad361dacc3bbe0 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 27 Apr 2017 15:20:50 -0400 Subject: [PATCH] Exit early when patches fail to apply (issue #2012) --- tools/patcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/patcher.py b/tools/patcher.py index 45e93a522..5cb981f9d 100644 --- a/tools/patcher.py +++ b/tools/patcher.py @@ -80,6 +80,7 @@ def apply_patch_config(): if results['fail'] > 0: sys.stdout.write('\n') write_note('ERROR', '%d patches failed to apply. Your build will not be correct.' % results['fail']) + raise Exception('%d patches failed to apply. Your build will not be correct.' % results['fail']) # Parse command-line options. disc = """