Exit early when patches fail to apply (issue #2012)

This commit is contained in:
Marshall Greenblatt 2017-04-27 15:20:50 -04:00
parent 6a603af993
commit 03e25c778a
1 changed files with 1 additions and 0 deletions

View File

@ -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 = """