From c6e069bfe5df0e2563b50ca1b89a8d9166ce05b9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 14 Mar 2011 13:30:46 -0700 Subject: [PATCH] Fix bug in reporting curl errors --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 8297ff08a0..fa08f8759b 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -78,7 +78,7 @@ end # Kernel.system but with exceptions def safe_system cmd, *args unless Homebrew.system cmd, *args - args = args.map{ |arg| arg.gsub " ", "\\ " } * " " + args = args.map{ |arg| arg.to_s.gsub " ", "\\ " } * " " raise "Failure while executing: #{cmd} #{args}" end end