Skip to content
Browse files

Don't crash on unmatched quote in repl

  • Loading branch information...
1 parent eef059c commit 2ab01c5fed198ee451837b062f0e02e783519289 Matthew Boedicker and Pieter Noordhuis committed Mar 25, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 warden/lib/warden/repl/repl_v2.rb
View
6 warden/lib/warden/repl/repl_v2.rb
@@ -112,7 +112,11 @@ def process_line(line)
line = line.strip
return if line.empty?
- process_command(Shellwords.shellsplit(line))
+ begin
+ process_command(Shellwords.shellsplit(line))
+ rescue ArgumentError => e
+ raise CommandError, e.message
+ end
end
# Returns a prettified description [String] of all commands defined in the

0 comments on commit 2ab01c5

Please sign in to comment.
Something went wrong with that request. Please try again.