From 7b7f17696e3da8fdfd96a15983172caab0d3c59e Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sun, 8 Dec 2024 21:32:30 +0300 Subject: [PATCH] Fix confusing activate/deactivate error messages --- 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 ef213c12..0f5d324b 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 7d9e1d79..e9e4660e 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