aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-14 13:30:46 -0700
committerAdam Vandenberg2011-03-14 13:30:46 -0700
commit054822421351441a45aa290cced70e2cc005e2df (patch)
treea5564e08bc1c34ce009447aa6f4aaef69ae4ec34 /Library
parent7e499f5832e01f502ca082e8a09306b5996f9f2d (diff)
downloadhomebrew-054822421351441a45aa290cced70e2cc005e2df.tar.bz2
Fix bug in reporting curl errors
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 8297ff08a..fa08f8759 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