more-helpful error message

This commit is contained in:
Marcin 2023-04-06 18:35:06 +01:00
parent fca12418ca
commit 23d721be0d

View file

@ -340,6 +340,8 @@ export PYENV_VERSION="${VERSION_NAME}"
PREFIX="$(pyenv-prefix 2>/dev/null || true)"
if [ ! -d "${PREFIX}" ]; then
echo "pyenv-virtualenv: \`${PYENV_VERSION}' is not installed in pyenv." 1>&2
echo
echo "See all available versions with \`pyenv install --list'."
exit 1
fi