From 4f4ff208eb82b45bfea07e12a21f5eff4bf2de95 Mon Sep 17 00:00:00 2001 From: Matthew Campbell Date: Sat, 2 Jan 2016 11:16:50 -0500 Subject: [PATCH] Improve error messages --- test/install_script/nvm_detect_profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/install_script/nvm_detect_profile b/test/install_script/nvm_detect_profile index b459afc..92da1d2 100755 --- a/test/install_script/nvm_detect_profile +++ b/test/install_script/nvm_detect_profile @@ -18,7 +18,7 @@ cleanup () { rm -f ".bashrc" ".bash_profile" ".zshrc" ".profile" "test_profile" > "/dev/null" 2>&1 } -die () { echo "$@"; cleanup; exit 1; } +die () { echo "$@" '$NVM_DETECT_PROFILE:' "$NVM_DETECT_PROFILE"; cleanup; exit 1; } setup @@ -77,7 +77,7 @@ fi # It should favor .profile if file exists NVM_DETECT_PROFILE="$(unset SHELL; nvm_detect_profile)" if [ "$NVM_DETECT_PROFILE" != "$HOME/.profile" ]; then - die "nvm_detect_profile should have selected .profile ($NVM_DETECT_PROFILE) ($SHELL)" + die "nvm_detect_profile should have selected .profile" fi # Otherwise, it should favor .bashrc if file exists