From db299cada3305ed112f1eeb02e939c107d72f7dc Mon Sep 17 00:00:00 2001 From: native-api Date: Sun, 8 Dec 2024 21:43:35 +0300 Subject: [PATCH] Fix confusing activate/deactivate error messages (#495) --- bin/pyenv-activate | 6 ++---- bin/pyenv-deactivate | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/pyenv-activate b/bin/pyenv-activate index ef213c1..0f5d324 100755 --- a/bin/pyenv-activate +++ b/bin/pyenv-activate @@ -22,10 +22,8 @@ fi { printf "\x1B[31;1m" echo - echo "Failed to activate virtualenv." - echo - echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly." - echo "Please restart current shell and try again." + echo "\`pyenv activate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell." + echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions." echo printf "\x1B[0m" } 1>&2 diff --git a/bin/pyenv-deactivate b/bin/pyenv-deactivate index 7d9e1d7..e9e4660 100755 --- a/bin/pyenv-deactivate +++ b/bin/pyenv-deactivate @@ -11,10 +11,8 @@ set -e { printf "\x1B[31;1m" echo - echo "Failed to deactivate virtualenv." - echo - echo "Perhaps pyenv-virtualenv has not been loaded into your shell properly." - echo "Please restart current shell and try again." + echo "\`pyenv deactivate' requires Pyenv and Pyenv-Virtualenv to be loaded into your shell." + echo "Check your shell configuration and Pyenv and Pyenv-Virtualenv installation instructions." echo printf "\x1B[0m" } 1>&2