summaryrefslogtreecommitdiff
path: root/lib/bundler
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2019-12-20 08:01:36 -0600
committerGitHub <noreply@github.com>2019-12-20 08:01:36 -0600
commitc04ee6319293624b7ceaded3fcc988a775483baa (patch)
tree4d7c7d4413f2bde3550712100dc782ad272122aa /lib/bundler
parent6ab5f479ae7e53e0833a342fb4129ae3952b049e (diff)
downloadbundler-c04ee6319293624b7ceaded3fcc988a775483baa.tar.gz
Improve error message when not logged in
`gem push` makes you add other parameters, and is awkward to figure out the details. `gem signin` is a more direct way of doing this.
Diffstat (limited to 'lib/bundler')
-rw-r--r--lib/bundler/gem_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/gem_helper.rb b/lib/bundler/gem_helper.rb
index 7d4e382be8..7e12d0a5e2 100644
--- a/lib/bundler/gem_helper.rb
+++ b/lib/bundler/gem_helper.rb
@@ -100,7 +100,7 @@ module Bundler
cmd << "--key" << gem_key if gem_key
cmd << "--host" << allowed_push_host if allowed_push_host
unless allowed_push_host || Bundler.user_home.join(".gem/credentials").file?
- raise "Your rubygems.org credentials aren't set. Run `gem push` to set them."
+ raise "Your rubygems.org credentials aren't set. Run `gem signin` to set them."
end
sh_with_input(cmd)
Bundler.ui.confirm "Pushed #{name} #{version} to #{gem_push_host}"