aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-26 15:25:09 -0500
committerJack Nagel2013-06-26 15:25:09 -0500
commit249a3f14654c738b0763055fdd11f1f589233411 (patch)
treeda755b17aa48f4c2a1a6fb950481efde6e7f0be1 /Library
parentce4b6218740bea2d9175ab268ef0ccadcb455741 (diff)
downloadbrew-249a3f14654c738b0763055fdd11f1f589233411.tar.bz2
Print inspected values in dependency collector errors
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependency_collector.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb
index 1d0174a2e..77370a3b9 100644
--- a/Library/Homebrew/dependency_collector.rb
+++ b/Library/Homebrew/dependency_collector.rb
@@ -60,7 +60,7 @@ class DependencyCollector
when Class
parse_class_spec(spec, tags)
else
- raise TypeError, "Unsupported type #{spec.class} for #{spec}"
+ raise TypeError, "Unsupported type #{spec.class} for #{spec.inspect}"
end
end
@@ -103,7 +103,7 @@ class DependencyCollector
# Tiger's ld is too old to properly link some software
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
else
- raise "Unsupported special dependency #{spec}"
+ raise "Unsupported special dependency #{spec.inspect}"
end
end
@@ -111,7 +111,7 @@ class DependencyCollector
if spec < Requirement
spec.new(tags)
else
- raise TypeError, "#{spec} is not a Requirement subclass"
+ raise TypeError, "#{spec.inspect} is not a Requirement subclass"
end
end