Print inspected values in dependency collector errors
This commit is contained in:
parent
ce4b621874
commit
249a3f1465
@ -60,7 +60,7 @@ class DependencyCollector
|
|||||||
when Class
|
when Class
|
||||||
parse_class_spec(spec, tags)
|
parse_class_spec(spec, tags)
|
||||||
else
|
else
|
||||||
raise TypeError, "Unsupported type #{spec.class} for #{spec}"
|
raise TypeError, "Unsupported type #{spec.class} for #{spec.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ class DependencyCollector
|
|||||||
# Tiger's ld is too old to properly link some software
|
# Tiger's ld is too old to properly link some software
|
||||||
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
|
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
|
||||||
else
|
else
|
||||||
raise "Unsupported special dependency #{spec}"
|
raise "Unsupported special dependency #{spec.inspect}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ class DependencyCollector
|
|||||||
if spec < Requirement
|
if spec < Requirement
|
||||||
spec.new(tags)
|
spec.new(tags)
|
||||||
else
|
else
|
||||||
raise TypeError, "#{spec} is not a Requirement subclass"
|
raise TypeError, "#{spec.inspect} is not a Requirement subclass"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user