Include OS X version with fatal error details

So when people do what it says and list the info we know in advance their OS
version.
This commit is contained in:
Max Howell 2009-09-08 16:37:25 +01:00
parent 5bf6cf06ff
commit edc0f7ba20

View File

@ -233,7 +233,9 @@ rescue SystemCallError, RuntimeError => e
rescue Exception => e
onoe "Homebrew has failed you :("
puts "Please report this bug at: #{HOMEBREW_WWW}"
puts "Please include this backtrace:"
puts "Please include the following information:"
ohai "Environment"
puts "Mac OS X: "+`sw_vers -productVersion`
ohai e.inspect
puts e.backtrace
end