Merge "Improve error messaging for accessing review.o.o"

This commit is contained in:
Jenkins 2015-10-08 21:17:49 +00:00 committed by Gerrit Code Review
commit c9fedebcf1
1 changed files with 12 additions and 0 deletions

View File

@ -168,6 +168,18 @@ projects="$*"
if [ -z "$projects" ]
then
projects=$(ssh review.openstack.org -p 29418 gerrit ls-projects | grep -v 'attic')
RC=$?
if [ $RC -ne 0 ]
then
echo "Unable to obtain a list of projects from gerrit. Check your ssh credientials for review.openstack.org"
userid=`id -un`
gerrit_userid=`git config --get gitreview.username`
if [ $userid != $gerrit_userid ]
then
echo "Identified a possible userid difference between $userid and $gerrit_userid"
fi
exit $RC
fi
else
# Go ahead and set things up so we will work with stackforge
# repositories, in case the caller has specified one on the