Improved error message for when branch not whitelisted in features yaml

Change-Id: I587cd38ad2207291c984b357b4a27128014d509c
This commit is contained in:
Cody A.W. Somerville
2014-10-22 18:59:29 -04:00
parent f2749aaca0
commit 31ec62bf50

View File

@@ -58,7 +58,7 @@ def normalize_branch(branch):
# projects are developing master.
branch = GRID['branches']['default']
if branch not in ALLOWED_BRANCHES:
LOG.error("unknown branch name %s" % branch)
LOG.error("branch not allowed by features matrix: %s" % branch)
sys.exit(1)
return branch