From bfbfdf03eb2bcbb73082af0325f85761ea87719e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 30 Mar 2012 23:02:32 -0700 Subject: [PATCH] Show target path when empty --- Library/Homebrew/extend/pathname.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb index 3adf6dfc27..797c89b7e2 100644 --- a/Library/Homebrew/extend/pathname.rb +++ b/Library/Homebrew/extend/pathname.rb @@ -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) }