Permalink
Browse files

fail on ruby/gemset not found when using rvm . do, wrong message but …

…we are going in proper direction, update #2659
  • Loading branch information...
1 parent 4620c5d commit dd724b7e51fff13990c74f56564c05ef3884124a @mpapis mpapis committed Mar 7, 2014
Showing with 5 additions and 2 deletions.
  1. +3 −1 scripts/functions/rvmrc
  2. +2 −1 scripts/functions/rvmrc_project
View
@@ -156,7 +156,9 @@ __rvm_rvmrc_tools_read_ruby()
rvm_current_rvmrc=""
rvm_trust_rvmrcs_flag=1
__rvm_project_rvmrc "$rvmrc_path" >/dev/null 2>&1 &&
- __rvm_env_string
+ __rvm_env_string
)"
rvm_ruby_strings="$rvm_ruby_string"
+ [[ -n "$rvm_ruby_string" ]] || return 1
+ true
}
@@ -77,7 +77,8 @@ __rvm_load_project_config()
__rvm_ensure_is_a_function
unset GEM_HOME GEM_PATH
- rvm_ruby_string="${rvm_previous_environment/system/default}" rvm_action=use source "$1"
+ rvm_ruby_string="${rvm_previous_environment/system/default}" rvm_action=use source "$1" ||
+ return $?
else
return $?
fi

0 comments on commit dd724b7

Please sign in to comment.