aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-03-23 09:51:41 +0000
committerGitHub2017-03-23 09:51:41 +0000
commit53bcec7679edab4df0b355dfbbef85175da9e75f (patch)
treee089cfa9c5bbc575e5c547739d028c6c9ae0ae5f /Library/Homebrew/cmd/info.rb
parent08a22d013e9ba44aa7c4ed4d08bb2fd6aebf7c05 (diff)
parent35a4836dc363a69f19fa202deef6ae7a9a2b4440 (diff)
downloadbrew-53bcec7679edab4df0b355dfbbef85175da9e75f.tar.bz2
Merge pull request #2377 from zmwangx/warn-on-slow-missing-formula-search
missing_formula: warn when git-log takes very long
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 7e1815556..e7ad6821d 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -55,11 +55,10 @@ module Homebrew
info_formula Formulary.find_with_priority(f)
end
rescue FormulaUnavailableError => e
+ ofail e.message
# No formula with this name, try a missing formula lookup
if (reason = Homebrew::MissingFormula.reason(f))
- ofail "#{e.message}\n#{reason}"
- else
- ofail e.message
+ $stderr.puts reason
end
end
end