Skip to content

Commit

Permalink
Fix git org parse failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
ClifHouck committed Dec 6, 2023
1 parent fd4b24d commit 5971f90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -2815,7 +2815,10 @@ def enable_all():
components_git_orgs = {key: DEFAULT_GIT_ORG for key in COMPONENTS_GIT_ORG_KEYS}
for git_org in FLAGS.git_org:
parts = git_org.split("!")
fail_if(len(parts) != 2, "--git-org must specify <component-name>:<git-org>")
fail_if(
len(parts) != 2,
"--git-org must specify <component-name>!<git-org>, note '!' separator.",
)
fail_if(
parts[0] not in components_git_orgs,
'--git-org <component-name> must be one of "{}"'.format(
Expand Down

0 comments on commit 5971f90

Please sign in to comment.