From 8f725438194876f9e454680270f0bd0ac95538f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Mon, 18 Nov 2019 17:07:31 +0100 Subject: [PATCH] printing message if patch successful --- scripts/phabtalk/apply_patch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/phabtalk/apply_patch.py b/scripts/phabtalk/apply_patch.py index fb0bdb3..43c9880 100755 --- a/scripts/phabtalk/apply_patch.py +++ b/scripts/phabtalk/apply_patch.py @@ -60,12 +60,13 @@ def _apply_patch(diff_id: str, conduit_token: str, host: str): '--conduit-token "{}" --conduit-uri "{}"'.format( diff_id, conduit_token, host ) result = subprocess.run(cmd, capture_output=True, shell=True, text=True) + print(result.stdout + result.stderr) if result.returncode != 0: - print('ERROR: arc patch failed with error code {} and message:'.format(result.returncode)) - print(result.stdout + result.stderr) + print('ERROR: arc patch failed with error code {}.'.format(result.returncode)) raise subprocess.CalledProcessError('ERROR: arc patch failed') print('Patching completed.') + if __name__ == "__main__": main()