debrew: fix undefined variable

This commit is contained in:
Alexander Bayandin 2023-03-14 11:09:57 +01:00 committed by GitHub
parent 8a5e1697a6
commit d907a591a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ module Debrew
Menu.choose do |menu| Menu.choose do |menu|
menu.prompt = "Choose an action: " menu.prompt = "Choose an action: "
menu.choice(:raise) { raise(e) } menu.choice(:raise) { raise(exception) }
menu.choice(:ignore) { return :ignore } if exception.is_a?(Ignorable::ExceptionMixin) menu.choice(:ignore) { return :ignore } if exception.is_a?(Ignorable::ExceptionMixin)
menu.choice(:backtrace) { puts exception.backtrace } menu.choice(:backtrace) { puts exception.backtrace }