aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2014-02-16 18:35:33 +0000
committerMike McQuaid2014-02-16 18:35:33 +0000
commit1fecd418e4e93a0bb7c92496746ba75f1d80acd8 (patch)
tree21c19e5826b5e4b7dae13c61c48cdb7292550a7f /Library/Homebrew/cmd
parent63629ab13bfe7e355eacf1235e52699f5cc3a581 (diff)
downloadbrew-1fecd418e4e93a0bb7c92496746ba75f1d80acd8.tar.bz2
versions: ignore validation errors.
References Homebrew/homebrew#26748.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/versions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index d646f8aef..4112c8d39 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -94,7 +94,8 @@ class Formula
end
IGNORED_EXCEPTIONS = [SyntaxError, TypeError, NameError,
- ArgumentError, FormulaSpecificationError]
+ ArgumentError, FormulaSpecificationError,
+ FormulaValidationError,]
def version_for_sha sha
formula_for_sha(sha) {|f| f.version }