aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-04-19 10:39:08 +0100
committerGitHub2017-04-19 10:39:08 +0100
commitb6b98f486e8647bb25427a3e080c3dd8d266a9e2 (patch)
tree7a3606a9544fad64c284abfc59503675a4a92eb8 /Library/Homebrew/cmd
parent55c02ae7747bf05eadec95c91497d06ec3dd2ded (diff)
parent1330b7441676da82ae89591b5d60e2e3f7b8ebe2 (diff)
downloadbrew-b6b98f486e8647bb25427a3e080c3dd8d266a9e2.tar.bz2
Merge pull request #2502 from MikeMcQuaid/install-no-search-unreadable
install: don't search when formula is unreadable.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index fd7aede86..394b31db0 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -206,7 +206,8 @@ module Homebrew
Migrator.migrate_if_needed(f)
install_formula(f)
end
- rescue FormulaClassUnavailableError => e
+ rescue FormulaUnreadableError, FormulaClassUnavailableError,
+ TapFormulaUnreadableError, TapFormulaClassUnavailableError => e
# Need to rescue before `FormulaUnavailableError` (superclass of this)
# is handled, as searching for a formula doesn't make sense here (the
# formula was found, but there's a problem with its implementation).