From 35267d7c22a78b4e533c456eeb44aaa70ffbd9bd Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 27 Jun 2014 15:18:45 -0500 Subject: Disable "ignore" and "irb" debugger options unless we have a continuation Fixes Homebrew/homebrew#30472. --- Library/Homebrew/debrew.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/debrew.rb') diff --git a/Library/Homebrew/debrew.rb b/Library/Homebrew/debrew.rb index 546b790fb..e8df1aeec 100644 --- a/Library/Homebrew/debrew.rb +++ b/Library/Homebrew/debrew.rb @@ -47,7 +47,7 @@ def debrew(exception, formula=nil) choose do |menu| menu.prompt = "Choose an action: " menu.choice(:raise) { original_raise exception } - menu.choice(:ignore) { exception.restart } + menu.choice(:ignore) { exception.restart } if exception.continuation menu.choice(:backtrace) { puts exception.backtrace; again = true } menu.choice(:debug) do puts "When you exit the debugger, execution will continue." @@ -64,7 +64,7 @@ def debrew(exception, formula=nil) end } end - end if Object.const_defined?(:IRB) + end if Object.const_defined?(:IRB) && exception.continuation menu.choice(:shell) do puts "When you exit this shell, you will return to the menu." interactive_shell formula -- cgit v1.2.3