lib/vimgolf/cli.rb in vimgolf-0.4.4 vs lib/vimgolf/cli.rb in vimgolf-0.4.5
- old
+ new
@@ -88,11 +88,11 @@
if diff.size > 0
VimGolf.ui.error "\nUh oh, looks like your entry does not match the desired output."
VimGolf.ui.error "Your score for this failed attempt was: #{log.score}"
loop do
- VimGolf.ui.warn "[d] Show a diff"
+ VimGolf.ui.warn "[d] Show diff"
VimGolf.ui.warn "[r] Retry the current challenge"
VimGolf.ui.warn "[q] Quit vimgolf"
case VimGolf.ui.ask_question "Choice> ",
:type => :warn,
@@ -148,12 +148,12 @@
rescue RetryException => e
retry
end
- rescue Interrupt, StandardError
+ rescue Interrupt
VimGolf.ui.info "\nThanks for playing!"
- rescue Exception => e
+ rescue RuntimeError, Exception => e
VimGolf.ui.error "Uh oh, something went wrong! Error: #{e}"
VimGolf.ui.error "If the error persists, please report it to github.com/igrigorik/vimgolf"
end
private