From e453ffefb8a857f2f149be309dac986d67eaa454 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Mon, 6 Dec 2021 11:55:08 -0800 Subject: [PATCH] More verbose error message if the Git checkout fails. --- .../ci/detection_testing_batch/detection_testing_execution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py b/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py index 7efbdc1675..1c35e6f0bd 100644 --- a/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py +++ b/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py @@ -322,7 +322,8 @@ def main(args: list[str]): settings['branch'], settings['commit_hash'], settings['pr_number'], settings['persist_security_content']) settings['commit_hash'] = github_service.commit_hash except Exception as e: - print("Failure checking out git repository: %s\n\tQuitting",file=sys.stderr) + print("Failure checking out git repository:\n\t\n\tHash: [%s]\n\tBranch: [%s]\n\tPR: [%s]\n\tQuitting"% + (settings['commit_hash'],settings['branch'],settings['pr_number']),file=sys.stderr) sys.exit(1) # Make a backup of this config containing the hash and stripped credentials.