Show target path when empty

This commit is contained in:
Adam Vandenberg 2012-03-30 23:02:32 -07:00
parent a0cb4e7c11
commit bfbfdf03eb

View File

@ -9,13 +9,13 @@ class Pathname
case src
when Array
if src.empty?
opoo "install was passed an empty array"
opoo "tried to install empty array to #{self}"
return []
end
src.each {|s| results << install_p(s) }
when Hash
if src.empty?
opoo "install was passed an empty hash"
opoo "tried to install empty hash to #{self}"
return []
end
src.each {|s, new_basename| results << install_p(s, new_basename) }