push-to-pull-request: Give a more detailed error on URL parse failure.

This simplifies debugging when this error fires, e.g. for finding
an issue like the one we just used `git remote get-url` to fix.
This commit is contained in:
Greg Price 2020-02-11 14:40:49 -08:00
parent e7a82e732e
commit e3d843baf9
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ if [ -z "$repo_fq" ]; then
# We're pretty specific about what we expect the URL to look like;
# there are probably more cases we could legitimately cover, which
# we can add if/when they come up for someone.
echo "error: couldn't parse remote URL as GitHub repo" >&2
echo "error: couldn't parse remote URL as GitHub repo: $remote_url" >&2
exit 1
fi