Skip to content

Commit

Permalink
update-version.py: clearer error when "patch" isn’t installed
Browse files Browse the repository at this point in the history
  • Loading branch information
thilp committed Sep 30, 2022
1 parent e0559d3 commit 4ab7668
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions update-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ def run():
actual_successes = 0
for patch in patches:
print(patch.pretty())
if patch.apply():
actual_successes += 1
try:
if patch.apply():
actual_successes += 1
except:
logging.exception("Failed to apply patch!")
raise
print()
logging.info(f"Patched {actual_successes}/{expected_successes} of expected files.")
if actual_successes < expected_successes:
Expand Down

0 comments on commit 4ab7668

Please sign in to comment.