mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
dependency_collector: use ArgumentError exception.
Avoids errors with `brew versions` when bottling. References Homebrew/homebrew#27615.
This commit is contained in:
parent
3b0eef09e9
commit
c34ed98eaf
@ -123,7 +123,7 @@ class DependencyCollector
|
|||||||
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
|
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
|
||||||
when :ant then ant_dep(spec, tags)
|
when :ant then ant_dep(spec, tags)
|
||||||
else
|
else
|
||||||
raise "Unsupported special dependency #{spec.inspect}"
|
raise ArgumentError, "Unsupported special dependency #{spec.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user