diff options
| author | Jack Nagel | 2014-06-27 15:18:45 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-06-27 15:19:30 -0500 | 
| commit | 35267d7c22a78b4e533c456eeb44aaa70ffbd9bd (patch) | |
| tree | e2196c4d6ddaa4ffe848120d439c26598d8fe803 /Library | |
| parent | c5fcdb1f21ce792d20ea921bf6f91a71e0b4cf1b (diff) | |
| download | brew-35267d7c22a78b4e533c456eeb44aaa70ffbd9bd.tar.bz2 | |
Disable "ignore" and "irb" debugger options unless we have a continuation
Fixes Homebrew/homebrew#30472.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/debrew.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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 | 
