aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorPatrick Stadler2015-10-19 14:54:39 +0200
committerMike McQuaid2015-10-20 08:38:53 +0100
commit3dda14f5bdf2e3b22f0fb94cac4afcbbae2fa682 (patch)
treec1711c84b371b70d8dff3e23bb2186c56fbec6da /Library/Homebrew/utils.rb
parent4934dbb905d4e08b9f6ddf8af170e5605758d3a4 (diff)
downloadbrew-3dda14f5bdf2e3b22f0fb94cac4afcbbae2fa682.tar.bz2
Provide better link when rate limit exceeded error is thrown
Closes Homebrew/homebrew#45134. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index ee101b7c3..4cbb38301 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -419,10 +419,10 @@ module GitHub
def initialize(reset, error)
super <<-EOS.undent
GitHub #{error}
- Try again in #{pretty_ratelimit_reset(reset)}, or create an personal access token:
- https://github.com/settings/tokens
+ Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token:
+ https://github.com/settings/tokens/new?scopes=&description=Homebrew
and then set the token as: HOMEBREW_GITHUB_API_TOKEN
- EOS
+ EOS
end
def pretty_ratelimit_reset(reset)