diff options
| author | Mike McQuaid | 2015-09-06 13:30:02 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2015-09-06 13:30:02 +0100 | 
| commit | cbb91c5516ac6d2a673670edf5b7d509abe6df56 (patch) | |
| tree | ca0cfe185bcec115a32af8245ee35a97036df1c4 /Library/Homebrew/exceptions.rb | |
| parent | 881d68d35556097ef62031b7e5728e445d74d558 (diff) | |
| download | brew-cbb91c5516ac6d2a673670edf5b7d509abe6df56.tar.bz2 | |
exceptions: handle HOMEBREW_NO_GITHUB_API case.
Closes Homebrew/homebrew#43618.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 7816d065c..38bb9bf6b 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -245,7 +245,7 @@ class BuildError < RuntimeError        end      end      puts -    unless RUBY_VERSION < "1.8.7" || issues.empty? +    if RUBY_VERSION >= "1.8.7" && issues && issues.any?        puts "These open issues may also help:"        puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n")      end  | 
