mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
More verbose error message if the Git checkout fails.
This commit is contained in:
+2
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user