aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-07-23 23:57:11 +0200
committerBaptiste Fontaine2015-07-28 20:38:13 +0200
commitea13d62ce0f23f22abd14e04cf87ce6babb07ef5 (patch)
treee4dbcdf145d31dcb198793d808d4753d7288c11d
parent0c47c8f86400faf3b3b67c84396d216683b093ea (diff)
downloadbrew-ea13d62ce0f23f22abd14e04cf87ce6babb07ef5.tar.bz2
brew: print bug report URL for internal commands only
Closes Homebrew/homebrew#42069. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
-rwxr-xr-xLibrary/brew.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/brew.rb b/Library/brew.rb
index abe7f847a..24b72fc9d 100755
--- a/Library/brew.rb
+++ b/Library/brew.rb
@@ -68,6 +68,7 @@ begin
empty_argv = ARGV.empty?
help_regex = /(-h$|--help$|--usage$|-\?$|^help$)/
help_flag = false
+ internal_cmd = true
cmd = nil
ARGV.dup.each_with_index do |arg, i|
@@ -157,8 +158,10 @@ rescue RuntimeError, SystemCallError => e
exit 1
rescue Exception => e
onoe e
- puts "#{Tty.white}Please report this bug:"
- puts " #{Tty.em}#{OS::ISSUES_URL}#{Tty.reset}"
+ if internal_cmd
+ puts "#{Tty.white}Please report this bug:"
+ puts " #{Tty.em}#{OS::ISSUES_URL}#{Tty.reset}"
+ end
puts e.backtrace
exit 1
else