diff options
author | Colby Swandale <colby@taplaboratories.com> | 2016-11-14 21:46:06 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2016-11-14 21:46:06 +1100 |
commit | c542198aefcaaa9ef0574c0a4b0b889b5d91b0b2 (patch) | |
tree | ae7378f284e5c72058a0c750785c641f094be14a /lib | |
parent | 3d2cb43dcbd8a7d24d07971b5e12e554a14b4aaf (diff) | |
download | bundler-c542198aefcaaa9ef0574c0a4b0b889b5d91b0b2.tar.gz |
improve error message for bundle install --path --system conflict
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/cli/install.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index f66716b39d..5d02bea9f4 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -167,8 +167,8 @@ module Bundler def check_for_options_conflicts if (options[:path] || options[:deployment]) && options[:system] error_message = String.new - error_message << "You have specified both a path to install your gems to as well as --system. Please choose.\n" if options[:path] - error_message << "You have specified both --deployment as well as --system. Please choose.\n" if options[:deployment] + error_message << "You have specified both --path as well as --system. Please choose only one option.\n" if options[:path] + error_message << "You have specified both --deployment as well as --system. Please choose only one option.\n" if options[:deployment] raise InvalidOption.new(error_message) end end |