Add a better error message if godep isn't in the path.

This commit is contained in:
Brendan Burns 2014-08-15 20:44:29 -07:00
parent 8daf8c7a30
commit ff5ca94aa0

View File

@ -23,6 +23,12 @@ if [[ -z "$(which go)" ]]; then
exit 1
fi
if [[ -z "$(which godep)" ]]; then
echo "Can't find 'godep' in PATH, please fix and retry." >&2
echo "See https://github.com/tools/godep#install for installation instructions." >&2
exit 1
fi
# Travis continuous build uses a head go release that doesn't report
# a version number, so we skip this check on Travis. Its unnecessary
# there anyway.