Fix reporting of build errors.

This commit is contained in:
Adam Vandenberg 2011-03-14 15:48:35 -07:00
parent 80f98a1a19
commit 9104fdba8c

View File

@ -108,7 +108,7 @@ class BuildError < Homebrew::InstallationError
@command = cmd
@env = ENV.to_hash
@exit_status = es.exitstatus rescue 1
args = args.map{ |arg| arg.gsub " ", "\\ " }.join(" ")
args = args.map{ |arg| arg.to_s.gsub " ", "\\ " }.join(" ")
super formula, "Failed executing: #{command} #{args}"
end