Add error message to presubmit failure

Add error message to pre-upload script in the case where the remote branch does
not fit the standard '<remote>/<branch name>' format.

Previously the presubmit checks would error without printing the
relevant branch name.

TEST=repo upload .
Change-Id: I82545f3661b4f0403da71da73027b4b7e115d62a
Commit-Ready: Josh Pratt <>
Tested-by: Josh Pratt <>
Reviewed-by: Mike Frysinger <>
1 file changed