mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Fix confusing activate/deactivate error messages (#495)
This commit is contained in:
@@ -22,10 +22,8 @@ fi
|
|||||||
|
|
||||||
{ printf "\x1B[31;1m"
|
{ printf "\x1B[31;1m"
|
||||||
echo
|
echo
|
||||||
echo "Failed to activate virtualenv."
|
echo "\`pyenv activate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell."
|
||||||
echo
|
echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions."
|
||||||
echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly."
|
|
||||||
echo "Please restart current shell and try again."
|
|
||||||
echo
|
echo
|
||||||
printf "\x1B[0m"
|
printf "\x1B[0m"
|
||||||
} 1>&2
|
} 1>&2
|
||||||
|
|||||||
@@ -11,10 +11,8 @@ set -e
|
|||||||
|
|
||||||
{ printf "\x1B[31;1m"
|
{ printf "\x1B[31;1m"
|
||||||
echo
|
echo
|
||||||
echo "Failed to deactivate virtualenv."
|
echo "\`pyenv deactivate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell."
|
||||||
echo
|
echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions."
|
||||||
echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly."
|
|
||||||
echo "Please restart current shell and try again."
|
|
||||||
echo
|
echo
|
||||||
printf "\x1B[0m"
|
printf "\x1B[0m"
|
||||||
} 1>&2
|
} 1>&2
|
||||||
|
|||||||
Reference in New Issue
Block a user