aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-12-04 10:36:25 +0000
committerMax Howell2009-12-04 10:36:25 +0000
commit5bae3b5a9498513d0eef2d8561eb3003d4df934b (patch)
tree697170dc952e35cad56480816c7f2a57df2c23c1
parent8e3c36bbc8e176e9432cab0b308a22577c907526 (diff)
downloadhomebrew-5bae3b5a9498513d0eef2d8561eb3003d4df934b.tar.bz2
Puts URL for failed build line
-rwxr-xr-xbin/brew3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 749269279..f23f10fbb 100755
--- a/bin/brew
+++ b/bin/brew
@@ -307,7 +307,8 @@ rescue Interrupt => e
puts # seemingly a newline is typical
exit 130
rescue BuildError => e
- puts e.backtrace[1]
+ e.backtrace[1] =~ %r{Library/Formula/(.+)\.rb:(\d+)}
+ puts "http://github.com/mxcl/homebrew/blob/master/Library/Formula/#{$1}.rb#L#{$2}"
ohai "Environment"
dump_config
puts "Exit status: #{e.status.exitstatus}"