aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCamillo Lugaresi2012-06-08 04:31:51 +0200
committerJack Nagel2012-07-01 12:19:37 -0500
commit4488c3546d8020d6d343848239aecc107e456f03 (patch)
treec3f1f871306917ebb48f96a83e12c7626fb101c9 /Library
parent4416955495f13396f336186549a558ae2f291801 (diff)
downloadbrew-4488c3546d8020d6d343848239aecc107e456f03.tar.bz2
Better error message for unknown dep symbol
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependencies.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb
index 8b056f4ae..1ca1298fb 100644
--- a/Library/Homebrew/dependencies.rb
+++ b/Library/Homebrew/dependencies.rb
@@ -31,6 +31,8 @@ class DependencyCollector
dep = case spec
when :x11, :libpng
X11Dependency.new(tag)
+ when Symbol
+ raise "Unsupported special dependency #{spec}"
when String
if LANGUAGE_MODULES.include? tag
LanguageModuleDependency.new(tag, spec)