diff options
| -rwxr-xr-x | Library/brew.rb | 7 |
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 |
