aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/debrew.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-27 15:18:45 -0500
committerJack Nagel2014-06-27 15:19:30 -0500
commit35267d7c22a78b4e533c456eeb44aaa70ffbd9bd (patch)
treee2196c4d6ddaa4ffe848120d439c26598d8fe803 /Library/Homebrew/debrew.rb
parentc5fcdb1f21ce792d20ea921bf6f91a71e0b4cf1b (diff)
downloadbrew-35267d7c22a78b4e533c456eeb44aaa70ffbd9bd.tar.bz2
Disable "ignore" and "irb" debugger options unless we have a continuation
Fixes Homebrew/homebrew#30472.
Diffstat (limited to 'Library/Homebrew/debrew.rb')
-rw-r--r--Library/Homebrew/debrew.rb4
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