dependency_collector: use ArgumentError exception.

Avoids errors with `brew versions` when bottling.

References Homebrew/homebrew#27615.
This commit is contained in:
Mike McQuaid 2014-03-22 10:31:00 +00:00
parent 3b0eef09e9
commit c34ed98eaf

View File

@ -123,7 +123,7 @@ class DependencyCollector
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
when :ant then ant_dep(spec, tags)
else
raise "Unsupported special dependency #{spec.inspect}"
raise ArgumentError, "Unsupported special dependency #{spec.inspect}"
end
end